elective-stereophonic
elective-stereophonic
Multigateway status reports singapore
Please login or register.

Login with username, password and session length
Advanced search  

News:

Latest Stable Nxt Client: Nxt 1.12.2

Pages: 1 ... 4 5 [6] 7 8 ... 11  All

Author Topic: Multigateway status reports  (Read 39690 times)

jl777

  • Hero Member
  • *****
  • Karma: +718/-123
  • Offline Offline
  • Posts: 6170
    • View Profile
Re: Multigateway status reports
« Reply #100 on: April 13, 2014, 02:18:53 am »

chanc3r has started the code review and seems to be about 15% through the code. So far, so good. Nothing major.
I am still battling with the testnet to get my transactions confirmed. It looks like I have everything setup, I get a good txid, it even shows up with getTransaction, but it is not actually there?!?

Kind of hard to test when none of the transactions getconfirmed.

With all of the testnet problems and also in preparation for the upcoming scrutiny at chanc3r's level of detail, I did rework the deposit side to clean up the control flow. I also now use the comment field to get a 100% correlation to the asset transfer. I am seeing a properly constructed transferAsset command go out, but since transactions I am manually doing dont work, the transfers arent working either.

If anybody is able to get their transactions confirmed on testnet, please tell me how!

James
Logged
There are over 1000 people in SuperNET slack! http://slackinvite.supernet.org/ automatically sends you an invite

I am just a simple C programmer

btc2nxt

  • Full Member
  • ***
  • Karma: +42/-1
  • Offline Offline
  • Posts: 211
    • View Profile
Re: Multigateway status reports
« Reply #101 on: April 13, 2014, 03:56:04 am »

chanc3r has started the code review and seems to be about 15% through the code. So far, so good. Nothing major.
I am still battling with the testnet to get my transactions confirmed. It looks like I have everything setup, I get a good txid, it even shows up with getTransaction, but it is not actually there?!?

Kind of hard to test when none of the transactions getconfirmed.

With all of the testnet problems and also in preparation for the upcoming scrutiny at chanc3r's level of detail, I did rework the deposit side to clean up the control flow. I also now use the comment field to get a 100% correlation to the asset transfer. I am seeing a properly constructed transferAsset command go out, but since transactions I am manually doing dont work, the transfers arent working either.

If anybody is able to get their transactions confirmed on testnet, please tell me how!

James

testnet is running fine.

if your transactions can not be confirmed, you can delete h2 database then  reconstruct it.
Logged

jl777

  • Hero Member
  • *****
  • Karma: +718/-123
  • Offline Offline
  • Posts: 6170
    • View Profile
Re: Multigateway status reports
« Reply #102 on: April 14, 2014, 01:55:24 am »

None of my local copies are getting any confirmations. I had to use a remote server, but that is so slow and still things are a bit wonky. I bypassed internal checks so I can actually get some progress and managed to get deposits in and withdraws to the point where signrawtransaction doesnt work :(

It used to work, not sure what I did wrong. So, to relieve the stress from this, I decided to write Anon's physical goods store today. got almost all of the basics done and released.

I will wait until I can use the GUI to access a stable testnet as I think the multigateway is pretty much working, but I cant verify it. The types of bugs that are left are the ones where I need to run many test cases, which is not practical now.

James
Logged
There are over 1000 people in SuperNET slack! http://slackinvite.supernet.org/ automatically sends you an invite

I am just a simple C programmer

jl777

  • Hero Member
  • *****
  • Karma: +718/-123
  • Offline Offline
  • Posts: 6170
    • View Profile
Re: Multigateway status reports
« Reply #103 on: April 15, 2014, 04:49:34 am »

Latest release has removed the strange behavior. Spent the last day on NXTorrent, but it uses the same NXTprotocol/websockets framework, so I ended up getting a forms based local webpage that talks to multigateway.

http://209.126.71.170/api.html

So now I can finally debug multigateway and with an easy to use web form I hope it will go quickly.
Logged
There are over 1000 people in SuperNET slack! http://slackinvite.supernet.org/ automatically sends you an invite

I am just a simple C programmer

jl777

  • Hero Member
  • *****
  • Karma: +718/-123
  • Offline Offline
  • Posts: 6170
    • View Profile
Re: Multigateway status reports
« Reply #104 on: April 16, 2014, 01:47:49 am »

Finally!
I have BTC, LTC, DOGE and DRK all running and deposits work for all. I got asset transfers working for BTC and DOGE, and it probably works for the others too, just havent tested it yet.

Withdraw request also works and the last roadblock was that multisig withdrawal stopped working. It turns out bitcoind is pretty braindead when it comes to multisig and it doesnt even seem to know that it exists. However, you can still send it low level commands and if you just happen to have all the vins, vouts, unspents, etc. correct with proper keys (public and private), redeemscripts and scriptPubKey, then the transaction will go through. At least I just got a manual one to work.

So now, I have to tweak my rawtransaction code to compensate and I will be really close to being able to make a release for Mac's

James
Logged
There are over 1000 people in SuperNET slack! http://slackinvite.supernet.org/ automatically sends you an invite

I am just a simple C programmer

jl777

  • Hero Member
  • *****
  • Karma: +718/-123
  • Offline Offline
  • Posts: 6170
    • View Profile
Re: Multigateway status reports
« Reply #105 on: April 16, 2014, 05:52:07 am »

http://209.126.71.170/multigateway_NXTorrent_v02.zip has a combined Mac version of multigateway and NXTorrent. For the brave, the source is at https://github.com/jl777/NXTprotocol/tree/master/multigateway

It really needs a lot of testing. It is currently limited to DOGE, I got exactly 1 multisig withdraw to work, so no guarantees you will be able to withdraw. I am not seeing any problems in getting the deposits, so your DOGEs will be safe.

There is one file in the ZIP file, just run it and it will launch a command line program. First thing it does is generate a high entropy password (along with a bunch of files, so best to put it in its own directory). It will print this address at the top of http://127.0.0.1:7777  You need to send it enough testNXT so it can send AM's

You might have to wait a bit and sometimes it returns blank page. just hit refresh. You can see multigateway stats, filter by NXT acct or coin. Before you can make a deposit, you need to generate one and you can set your withdraw address in the same AM.

I have enabled tokenized security,which means all non-display functions will fail at first. It will display the actual command you need with the proper token calculated. copy it and paste it over starting at the ? in the URL.
127.0.0.1:7777/multigateway?<paste the tokenized JSON here>

For the curious, you can look at the commandline window and see a bunch of status going by.

Any crashes, or problems, definitely post here,along with the last part of the command window. I will probably offline most of the day, so dont worry if not response for a bit. It would be nice to get some test results. I am pretty sure the display of account info is not quite right.

James

P.S. NXTorrent does not have tokenized security (yet) and it could use some testing too
Logged
There are over 1000 people in SuperNET slack! http://slackinvite.supernet.org/ automatically sends you an invite

I am just a simple C programmer

Fatih87SK

  • Hero Member
  • *****
  • Karma: +127/-36
  • Offline Offline
  • Posts: 2206
    • View Profile
Re: Multigateway status reports
« Reply #106 on: April 16, 2014, 11:05:28 am »

Hi jl777,

There was an idea to release MultiGateway together with Asset Exchange.

What do you think about the planning of these two features? Will there be a big gap of releasedates or could it be ready at the same time?

If you can answer this we can decide about it.
Logged

jl777

  • Hero Member
  • *****
  • Karma: +718/-123
  • Offline Offline
  • Posts: 6170
    • View Profile
Re: Multigateway status reports
« Reply #107 on: April 16, 2014, 02:27:18 pm »

Hi jl777,

There was an idea to release MultiGateway together with Asset Exchange.

What do you think about the planning of these two features? Will there be a big gap of releasedates or could it be ready at the same time?

If you can answer this we can decide about it.
I cant release multigateway before AE as it depends on it
Also, there has been very little testing of multigateway by anybody other than me, so I am not comfortable with its stability yet. source review is proceeding and it could uncover some things that require some time.

Realistically, the guys testing AE need to finish testing AE so we can get that launched. Then hopefully they will be able to validate multigateway for release. It is really a matter of getting the tests, but there seem to be very few people for that...

So, simultaneous release is not practical. There will be a version running on testnet, but we also need to get production servers deployed and hardened. Again this will take some time. The more testers, the faster. Currently there doesnt seem to be anybody testing other than me, so it will be a long time

James
Logged
There are over 1000 people in SuperNET slack! http://slackinvite.supernet.org/ automatically sends you an invite

I am just a simple C programmer

jl777

  • Hero Member
  • *****
  • Karma: +718/-123
  • Offline Offline
  • Posts: 6170
    • View Profile
Re: Multigateway status reports
« Reply #108 on: April 16, 2014, 04:24:31 pm »

Looking into porting multigateway, NXTorrent, etc. to Windows. It seems that pthreads, sockets and time functions are not standard for windows. If anybody knows of a good cross platform equivalent for:

pthreads
sockets
time functions

please let me know

James
Logged
There are over 1000 people in SuperNET slack! http://slackinvite.supernet.org/ automatically sends you an invite

I am just a simple C programmer

Fatih87SK

  • Hero Member
  • *****
  • Karma: +127/-36
  • Offline Offline
  • Posts: 2206
    • View Profile
Re: Multigateway status reports
« Reply #109 on: April 16, 2014, 04:52:21 pm »

Got it. Thanks!
Logged

jl777

  • Hero Member
  • *****
  • Karma: +718/-123
  • Offline Offline
  • Posts: 6170
    • View Profile
Re: Multigateway status reports
« Reply #110 on: April 16, 2014, 08:23:09 pm »

chanc3r is getting in to high gear and starting to find some bugs. I didnt state any specify bounty for bugs found, but he has definitely earned it!

For finding memory leaks and a host of small issues, he got 1000 NXT
I am no BCNext, so there will be plenty of bugs for people to find. No guarantees on amounts paid, but the more severe the problem you find, the more you will get.

James
Logged
There are over 1000 people in SuperNET slack! http://slackinvite.supernet.org/ automatically sends you an invite

I am just a simple C programmer

emule

  • Jr. Member
  • **
  • Karma: +15/-64
  • Offline Offline
  • Posts: 49
    • View Profile
Re: Multigateway status reports
« Reply #111 on: April 16, 2014, 08:37:32 pm »



is this working yet ? zzzzzzzz :-\
Logged

Daedelus

  • Hero Member
  • *****
  • Karma: +230/-12
  • Offline Offline
  • Posts: 3280
    • View Profile
Re: Multigateway status reports
« Reply #112 on: April 16, 2014, 11:54:12 pm »

James,

I take it with all you projects being public that none of them are 'commercially sensitive'?

Its all open source yadda yadda yadda?   ;D
Logged
NXT: NXT-4CS7-S4N5-PTH5-A8R2Q

jl777

  • Hero Member
  • *****
  • Karma: +718/-123
  • Offline Offline
  • Posts: 6170
    • View Profile
Re: Multigateway status reports
« Reply #113 on: April 17, 2014, 12:43:31 am »

James,

I take it with all you projects being public that none of them are 'commercially sensitive'?

Its all open source yadda yadda yadda?   ;D
I dont fully understand the question...
I have used a few external source like cJSON, nacl, zlib, but they are all open source
Most of my projects are from code that I write.

https://github.com/jl777/NXTprotocol

I intend to make all my projects open source, usually around the time it goes into beta test. That way, source review ties in with the debugging process

Does that answer your question?

James

P.S. I sometimes do consulting work and deliver closed source projects, but that is for private businesses
Logged
There are over 1000 people in SuperNET slack! http://slackinvite.supernet.org/ automatically sends you an invite

I am just a simple C programmer

Daedelus

  • Hero Member
  • *****
  • Karma: +230/-12
  • Offline Offline
  • Posts: 3280
    • View Profile
Re: Multigateway status reports
« Reply #114 on: April 17, 2014, 01:37:00 am »

James,

I take it with all you projects being public that none of them are 'commercially sensitive'?

Its all open source yadda yadda yadda?   ;D
I dont fully understand the question...
I have used a few external source like cJSON, nacl, zlib, but they are all open source
Most of my projects are from code that I write.

https://github.com/jl777/NXTprotocol

I intend to make all my projects open source, usually around the time it goes into beta test. That way, source review ties in with the debugging process

Does that answer your question?

James

P.S. I sometimes do consulting work and deliver closed source projects, but that is for private businesses

Sorry, I was very unclear  ;D

Explicitly, is there enough info on this thread to allow someone to poach and implement multisig, possibly before you do?

I have been spreading the word about multisig gateways and ripple fiat bridges and pointing them to this thread via pm. I was worried this wasn't a good idea :-[ should I still do this? There is a lot of interest.
Logged
NXT: NXT-4CS7-S4N5-PTH5-A8R2Q

jl777

  • Hero Member
  • *****
  • Karma: +718/-123
  • Offline Offline
  • Posts: 6170
    • View Profile
Re: Multigateway status reports
« Reply #115 on: April 17, 2014, 02:00:58 am »

James,

I take it with all you projects being public that none of them are 'commercially sensitive'?

Its all open source yadda yadda yadda?   ;D
I dont fully understand the question...
I have used a few external source like cJSON, nacl, zlib, but they are all open source
Most of my projects are from code that I write.

https://github.com/jl777/NXTprotocol

I intend to make all my projects open source, usually around the time it goes into beta test. That way, source review ties in with the debugging process

Does that answer your question?

James

P.S. I sometimes do consulting work and deliver closed source projects, but that is for private businesses

Sorry, I was very unclear  ;D

Explicitly, is there enough info on this thread to allow someone to poach and implement multisig, possibly before you do?

I have been spreading the word about multisig gateways and ripple fiat bridges and pointing them to this thread via pm. I was worried this wasn't a good idea :-[ should I still do this? There is a lot of interest.
Are you talking about a multisig gateway for non-NXT platforms or for NXT platforms. If the former, it would require a fair amount of reworking as NXT-ness is embedded throughout.

I will make sure to keep the "secret sauce" internal, at least for a little bit. I will share with trusted members, so we can get a full source review

James
Logged
There are over 1000 people in SuperNET slack! http://slackinvite.supernet.org/ automatically sends you an invite

I am just a simple C programmer

Daedelus

  • Hero Member
  • *****
  • Karma: +230/-12
  • Offline Offline
  • Posts: 3280
    • View Profile
Re: Multigateway status reports
« Reply #116 on: April 17, 2014, 02:20:25 am »

Great, as long as the sauce is safe and copying hard I will keep spreading the word ;D
Logged
NXT: NXT-4CS7-S4N5-PTH5-A8R2Q

jl777

  • Hero Member
  • *****
  • Karma: +718/-123
  • Offline Offline
  • Posts: 6170
    • View Profile
Re: Multigateway status reports
« Reply #117 on: April 18, 2014, 02:05:51 am »

I wasnt feeling too well today, so I didnt want to mess with multigateway. I ended up with a crazy idea that maybe just means I am really sick and delusional, or I have come up with a way to implement atomic cross chain exchanges!

Before getting too excited, I need a volunteer who has a Mac. I want to test LTC <-> DOGE atomic exchanges, so you need to have both litecoin and dogecoin wallets installed with the following in the conf files:

/Users/<your username>/Library/Application Support/Dogecoin/dogecoin.conf
/Users/<your username>/Library/Application Support/Litecoin/litecoin.conf

server=1
rpcuser=dogecoinrpc
rpcpassword=<wallet will tell you a password to use>
txindex=1

It will be totally user unfriendly to setup and you will have to manually input the trade parameters. I just want to verify that this method really works.

Since its not implemented as the usual atomic methods (from what I can tell, the current miners wont even relay those tx's), I am calling this "NXTsubatomic" exchange. If I am right, it will work with the current miners for most all the bitcoind forks.

PM me if you are willing to be a guinea pig

James
Logged
There are over 1000 people in SuperNET slack! http://slackinvite.supernet.org/ automatically sends you an invite

I am just a simple C programmer

jl777

  • Hero Member
  • *****
  • Karma: +718/-123
  • Offline Offline
  • Posts: 6170
    • View Profile
Re: Multigateway status reports
« Reply #118 on: April 18, 2014, 06:28:50 am »

I did manage to get the libwebsockets working on ubuntu, at least I think it is working. I only have remote server access and no desktop.

http://209.126.71.170/ubuntu.zip has a test file. I dont expect it to do much, just hope that it interacts with http://209.126.71.170/api.html

Not all forms work, but the NXTorrent section should at least do something

If you have ubuntu desktop, just download the ubuntu.zip and run the NXTprotocol_test file.

I would like to know if you get anything interesting happening in the text window or the browser

VanBreuk pointed me to a cross platform sockets library and I got that integrated in for ubuntu and Mac. In the laborious process of getting a Windows dev environment setup. Theoretically everything should be portable as there is even a pthread library for windows.

Making slow progress in getting to a cross platform code base. Not sure how long this will take, but it seems clear that it needs to be done.

James
Logged
There are over 1000 people in SuperNET slack! http://slackinvite.supernet.org/ automatically sends you an invite

I am just a simple C programmer

fanaticalfishing

  • Full Member
  • ***
  • Karma: +10/-1
  • Offline Offline
  • Posts: 149
    • View Profile
Re: Multigateway status reports
« Reply #119 on: April 18, 2014, 05:11:28 pm »

I did manage to get the libwebsockets working on ubuntu, at least I think it is working. I only have remote server access and no desktop.

http://209.126.71.170/ubuntu.zip has a test file. I dont expect it to do much, just hope that it interacts with http://209.126.71.170/api.html

Not all forms work, but the NXTorrent section should at least do something

If you have ubuntu desktop, just download the ubuntu.zip and run the NXTprotocol_test file.

I would like to know if you get anything interesting happening in the text window or the browser

VanBreuk pointed me to a cross platform sockets library and I got that integrated in for ubuntu and Mac. In the laborious process of getting a Windows dev environment setup. Theoretically everything should be portable as there is even a pthread library for windows.

Making slow progress in getting to a cross platform code base. Not sure how long this will take, but it seems clear that it needs to be done.

James

it seems to be doing something on ubuntu.
The console shows it is scanning blocks.

Code: [Select]
NXT.74329 HIST timestamp.12545905 lag.497 NEW block.(884148407653481877) vs lastblock.(5220721533726672280) -> (5757168833205299378)
NXT.74330 HIST timestamp.12545982 lag.420 NEW block.(5757168833205299378) vs lastblock.(884148407653481877) -> (12746900890174342166)
HIST Waiting for hashtable queue to catchup: 1397840801
HIST Historical processing has finished: 1397840801
NXT.74333  timestamp.12546415 lag.11 NEW block.(7198590531545550036) vs lastblock.(16562822566049108305) -> ()
NXT.74334  timestamp.12546554 lag.32 NEW block.(13276547175619594509) vs lastblock.(7198590531545550036) -> (5006581464986821178)
NXT.74335  timestamp.12546565 lag.31 NEW block.(5006581464986821178) vs lastblock.(13276547175619594509) -> ()
NXT.74336  timestamp.12546589 lag.17 NEW block.(15215150350929899546) vs lastblock.(5006581464986821178) -> ()

I dont see anything different in the web browser. Im using nrs 9.6

Logged
Pages: 1 ... 4 5 [6] 7 8 ... 11  All
 

elective-stereophonic
elective-stereophonic
assembly
assembly