elective-stereophonic
elective-stereophonic
NXTsubatomic - atomic crosschain exchange & NXTatomic - atomic NXT tx swap 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 2 [3] 4 5 ... 7  All

Author Topic: NXTsubatomic - atomic crosschain exchange & NXTatomic - atomic NXT tx swap  (Read 47262 times)

jl777

  • Hero Member
  • *****
  • Karma: +718/-123
  • Offline Offline
  • Posts: 6170
    • View Profile

couldnt load.(/Users/*censored*/Documents/NXT/gateway/gateway/NXTprotocol.html
That's only if you have an html file to override the automatically generated page.
shouldnt be a problem if it isnt there
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

swartzfeger

  • Hero Member
  • *****
  • Karma: +50/-1
  • Offline Offline
  • Posts: 611
  • I bent my wookie
    • View Profile
    • https://www.instagram.com/swartzfeger/

Does testnet need to be higher than 0.8.13? This blockchain keeps rolling back... I'm thinking I need to be on 0.9.x. I never updated because of Wesley's wallet barfing on 0.9.x on the main net.
Logged

jl777

  • Hero Member
  • *****
  • Karma: +718/-123
  • Offline Offline
  • Posts: 6170
    • View Profile

Does testnet need to be higher than 0.8.13? This blockchain keeps rolling back... I'm thinking I need to be on 0.9.x. I never updated because of Wesley's wallet barfing on 0.9.x on the main net.
yes,you need 9.9, especially to test NXTatomic
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

swartzfeger

  • Hero Member
  • *****
  • Karma: +50/-1
  • Offline Offline
  • Posts: 611
  • I bent my wookie
    • View Profile
    • https://www.instagram.com/swartzfeger/

Does testnet need to be higher than 0.8.13? This blockchain keeps rolling back... I'm thinking I need to be on 0.9.x. I never updated because of Wesley's wallet barfing on 0.9.x on the main net.
yes,you need 9.9, especially to test NXTatomic

And NxtWallet keeps barfing on it, both main and test. I'm done with Wesley's wallet because the lack of updates is making it impossible to test.

Just download plain 9.9 and run it from the terminal?
Logged

jl777

  • Hero Member
  • *****
  • Karma: +718/-123
  • Offline Offline
  • Posts: 6170
    • View Profile

Does testnet need to be higher than 0.8.13? This blockchain keeps rolling back... I'm thinking I need to be on 0.9.x. I never updated because of Wesley's wallet barfing on 0.9.x on the main net.
yes,you need 9.9, especially to test NXTatomic

And NxtWallet keeps barfing on it, both main and test. I'm done with Wesley's wallet because the lack of updates is making it impossible to test.

Just download plain 9.9 and run it from the terminal?
you can run both testnet and main net at the same time
just download the new version in a new folder, edit the conf file to make sure testnet is set to true
now ports 68xx is testnet and mainnet is untouched
for my stuff, no need for wallet
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

swartzfeger

  • Hero Member
  • *****
  • Karma: +50/-1
  • Offline Offline
  • Posts: 611
  • I bent my wookie
    • View Profile
    • https://www.instagram.com/swartzfeger/

Does testnet need to be higher than 0.8.13? This blockchain keeps rolling back... I'm thinking I need to be on 0.9.x. I never updated because of Wesley's wallet barfing on 0.9.x on the main net.
yes,you need 9.9, especially to test NXTatomic

And NxtWallet keeps barfing on it, both main and test. I'm done with Wesley's wallet because the lack of updates is making it impossible to test.

Just download plain 9.9 and run it from the terminal?
you can run both testnet and main net at the same time
just download the new version in a new folder, edit the conf file to make sure testnet is set to true
now ports 68xx is testnet and mainnet is untouched
for my stuff, no need for wallet


You're a star. Edited .conf, restarted, testnet is now running on :6875 and blockchain is updating. I'll get there. :)
Logged

jl777

  • Hero Member
  • *****
  • Karma: +718/-123
  • Offline Offline
  • Posts: 6170
    • View Profile

Does testnet need to be higher than 0.8.13? This blockchain keeps rolling back... I'm thinking I need to be on 0.9.x. I never updated because of Wesley's wallet barfing on 0.9.x on the main net.
yes,you need 9.9, especially to test NXTatomic

And NxtWallet keeps barfing on it, both main and test. I'm done with Wesley's wallet because the lack of updates is making it impossible to test.

Just download plain 9.9 and run it from the terminal?
you can run both testnet and main net at the same time
just download the new version in a new folder, edit the conf file to make sure testnet is set to true
now ports 68xx is testnet and mainnet is untouched
for my stuff, no need for wallet


You're a star. Edited .conf, restarted, testnet is now running on :6875 and blockchain is updating. I'll get there. :)
Just be REALLY careful when running both as it is easy to confuse them, especially if you end up on the /test screen
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

swartzfeger

  • Hero Member
  • *****
  • Karma: +50/-1
  • Offline Offline
  • Posts: 611
  • I bent my wookie
    • View Profile
    • https://www.instagram.com/swartzfeger/

Does testnet need to be higher than 0.8.13? This blockchain keeps rolling back... I'm thinking I need to be on 0.9.x. I never updated because of Wesley's wallet barfing on 0.9.x on the main net.
yes,you need 9.9, especially to test NXTatomic

And NxtWallet keeps barfing on it, both main and test. I'm done with Wesley's wallet because the lack of updates is making it impossible to test.

Just download plain 9.9 and run it from the terminal?
you can run both testnet and main net at the same time
just download the new version in a new folder, edit the conf file to make sure testnet is set to true
now ports 68xx is testnet and mainnet is untouched
for my stuff, no need for wallet


You're a star. Edited .conf, restarted, testnet is now running on :6875 and blockchain is updating. I'll get there. :)
Just be REALLY careful when running both as it is easy to confuse them, especially if you end up on the /test screen

Do I need testNXT? Someone sent me 5000 last night but the balance is showing 0.00 (even tho I see the transaction for 5000 incoming last night).

11369639962571180006


never mind. logged out and back in, balance is all good.
« Last Edit: April 23, 2014, 07:04:23 am by swartzfeger »
Logged

swartzfeger

  • Hero Member
  • *****
  • Karma: +50/-1
  • Offline Offline
  • Posts: 611
  • I bent my wookie
    • View Profile
    • https://www.instagram.com/swartzfeger/


Apr 23 02:52:11 MBP.local lwsts[12574] <Notice>: Initial logging level 7
Apr 23 02:52:11 MBP.local lwsts[12574] <Notice>: Library version: 1.3 b25b85f
Apr 23 02:52:11 MBP.local lwsts[12574] <Notice>: IPV6 compiled in and enabled
Apr 23 02:52:11 MBP.local lwsts[12574] <Notice>: libev support not compiled in
Apr 23 02:52:11 MBP.local lwsts[12574] <Notice>:  Started with daemon pid 0
Apr 23 02:52:11 MBP.local lwsts[12574] <Notice>:  static allocation: 4512 + (16 x 256 fds) = 8608 bytes
Apr 23 02:52:11 MBP.local lwsts[12574] <Notice>:  canonical_hostname = MBP.local
Apr 23 02:52:11 MBP.local lwsts[12574] <Notice>:  per-conn mem: 208 + 1554 headers + protocol rx buf
Apr 23 02:52:11 MBP.local lwsts[12574] <Notice>:  Compiled with OpenSSL support
Apr 23 02:52:11 MBP.local lwsts[12574] <Notice>:  Using non-SSL mode
Apr 23 02:52:11 MBP.local lwsts[12574] <Error>: ERROR on binding to port 7777 (-1 48)
Apr 23 02:52:11 MBP.local lwsts[12574] <Notice>: mirror protocol cleaning up
Apr 23 02:52:11 MBP.local lwsts[12574] <Error>: libwebsocket init failed
Logged

swartzfeger

  • Hero Member
  • *****
  • Karma: +50/-1
  • Offline Offline
  • Posts: 611
  • I bent my wookie
    • View Profile
    • https://www.instagram.com/swartzfeger/

and http://127.0.0.1:7777 won't load
Logged

jl777

  • Hero Member
  • *****
  • Karma: +718/-123
  • Offline Offline
  • Posts: 6170
    • View Profile


Apr 23 02:52:11 MBP.local lwsts[12574] <Notice>: Initial logging level 7
Apr 23 02:52:11 MBP.local lwsts[12574] <Notice>: Library version: 1.3 b25b85f
Apr 23 02:52:11 MBP.local lwsts[12574] <Notice>: IPV6 compiled in and enabled
Apr 23 02:52:11 MBP.local lwsts[12574] <Notice>: libev support not compiled in
Apr 23 02:52:11 MBP.local lwsts[12574] <Notice>:  Started with daemon pid 0
Apr 23 02:52:11 MBP.local lwsts[12574] <Notice>:  static allocation: 4512 + (16 x 256 fds) = 8608 bytes
Apr 23 02:52:11 MBP.local lwsts[12574] <Notice>:  canonical_hostname = MBP.local
Apr 23 02:52:11 MBP.local lwsts[12574] <Notice>:  per-conn mem: 208 + 1554 headers + protocol rx buf
Apr 23 02:52:11 MBP.local lwsts[12574] <Notice>:  Compiled with OpenSSL support
Apr 23 02:52:11 MBP.local lwsts[12574] <Notice>:  Using non-SSL mode
Apr 23 02:52:11 MBP.local lwsts[12574] <Error>: ERROR on binding to port 7777 (-1 48)
Apr 23 02:52:11 MBP.local lwsts[12574] <Notice>: mirror protocol cleaning up
Apr 23 02:52:11 MBP.local lwsts[12574] <Error>: libwebsocket init failed
Apr 23 02:52:11 MBP.local lwsts[12574] <Error>: ERROR on binding to port 7777 (-1 48)
usually means you already have a copy running. only one instance is allowed as they all use the same port (for now)
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

swartzfeger

  • Hero Member
  • *****
  • Karma: +50/-1
  • Offline Offline
  • Posts: 611
  • I bent my wookie
    • View Profile
    • https://www.instagram.com/swartzfeger/


Apr 23 02:52:11 MBP.local lwsts[12574] <Notice>: Initial logging level 7
Apr 23 02:52:11 MBP.local lwsts[12574] <Notice>: Library version: 1.3 b25b85f
Apr 23 02:52:11 MBP.local lwsts[12574] <Notice>: IPV6 compiled in and enabled
Apr 23 02:52:11 MBP.local lwsts[12574] <Notice>: libev support not compiled in
Apr 23 02:52:11 MBP.local lwsts[12574] <Notice>:  Started with daemon pid 0
Apr 23 02:52:11 MBP.local lwsts[12574] <Notice>:  static allocation: 4512 + (16 x 256 fds) = 8608 bytes
Apr 23 02:52:11 MBP.local lwsts[12574] <Notice>:  canonical_hostname = MBP.local
Apr 23 02:52:11 MBP.local lwsts[12574] <Notice>:  per-conn mem: 208 + 1554 headers + protocol rx buf
Apr 23 02:52:11 MBP.local lwsts[12574] <Notice>:  Compiled with OpenSSL support
Apr 23 02:52:11 MBP.local lwsts[12574] <Notice>:  Using non-SSL mode
Apr 23 02:52:11 MBP.local lwsts[12574] <Error>: ERROR on binding to port 7777 (-1 48)
Apr 23 02:52:11 MBP.local lwsts[12574] <Notice>: mirror protocol cleaning up
Apr 23 02:52:11 MBP.local lwsts[12574] <Error>: libwebsocket init failed
Apr 23 02:52:11 MBP.local lwsts[12574] <Error>: ERROR on binding to port 7777 (-1 48)
usually means you already have a copy running. only one instance is allowed as they all use the same port (for now)


I'm only running one instance (as far as I know). I run v01, it does its thing, runs through all the timestamps, errors out on binding to 7777 and then quits to a $ prompt.
Logged

jl777

  • Hero Member
  • *****
  • Karma: +718/-123
  • Offline Offline
  • Posts: 6170
    • View Profile


Apr 23 02:52:11 MBP.local lwsts[12574] <Notice>: Initial logging level 7
Apr 23 02:52:11 MBP.local lwsts[12574] <Notice>: Library version: 1.3 b25b85f
Apr 23 02:52:11 MBP.local lwsts[12574] <Notice>: IPV6 compiled in and enabled
Apr 23 02:52:11 MBP.local lwsts[12574] <Notice>: libev support not compiled in
Apr 23 02:52:11 MBP.local lwsts[12574] <Notice>:  Started with daemon pid 0
Apr 23 02:52:11 MBP.local lwsts[12574] <Notice>:  static allocation: 4512 + (16 x 256 fds) = 8608 bytes
Apr 23 02:52:11 MBP.local lwsts[12574] <Notice>:  canonical_hostname = MBP.local
Apr 23 02:52:11 MBP.local lwsts[12574] <Notice>:  per-conn mem: 208 + 1554 headers + protocol rx buf
Apr 23 02:52:11 MBP.local lwsts[12574] <Notice>:  Compiled with OpenSSL support
Apr 23 02:52:11 MBP.local lwsts[12574] <Notice>:  Using non-SSL mode
Apr 23 02:52:11 MBP.local lwsts[12574] <Error>: ERROR on binding to port 7777 (-1 48)
Apr 23 02:52:11 MBP.local lwsts[12574] <Notice>: mirror protocol cleaning up
Apr 23 02:52:11 MBP.local lwsts[12574] <Error>: libwebsocket init failed
Apr 23 02:52:11 MBP.local lwsts[12574] <Error>: ERROR on binding to port 7777 (-1 48)
usually means you already have a copy running. only one instance is allowed as they all use the same port (for now)


I'm only running one instance (as far as I know). I run v01, it does its thing, runs through all the timestamps, errors out on binding to 7777 and then quits to a $ prompt.

maybe there is something else using that port...
run the following from the terminal

lsof -n -i4TCP:7777

does anything show up?
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

swartzfeger

  • Hero Member
  • *****
  • Karma: +50/-1
  • Offline Offline
  • Posts: 611
  • I bent my wookie
    • View Profile
    • https://www.instagram.com/swartzfeger/


COMMAND     PID USER   FD   TYPE             DEVICE SIZE/OFF NODE NAME
com.apple   252  jay   11u  IPv4 0x5edd11fff3d6235d      0t0  TCP 127.0.0.1:55589->127.0.0.1:cbt (ESTABLISHED)
com.apple   252  jay   15u  IPv4 0x5edd11fff3d6235d      0t0  TCP 127.0.0.1:55589->127.0.0.1:cbt (ESTABLISHED)
NXTsubato 12249  jay   10u  IPv6 0x5edd11ffebff7e7d      0t0  TCP *:cbt (LISTEN)
 
Logged

swartzfeger

  • Hero Member
  • *****
  • Karma: +50/-1
  • Offline Offline
  • Posts: 611
  • I bent my wookie
    • View Profile
    • https://www.instagram.com/swartzfeger/

did a top and there were multiple copies running of v0 and v1 running.
Logged

swartzfeger

  • Hero Member
  • *****
  • Karma: +50/-1
  • Offline Offline
  • Posts: 611
  • I bent my wookie
    • View Profile
    • https://www.instagram.com/swartzfeger/

Ok, I'm cooking now. Restarted 9.9, killed all the v0 and v1 and everything is fine now.


http://127.0.0.1:7777 loads fine too.
Logged

jl777

  • Hero Member
  • *****
  • Karma: +718/-123
  • Offline Offline
  • Posts: 6170
    • View Profile

http://209.126.71.170/NXTsubatomic_v04.zip fixes a problem where the account cant be changed

If you and your subatomic trade partner are comfortable with enabling broadcasting the transactions (after making sure they look right!) the above version has a way to enable it. In the accountinfo JSON:

"enable_bitcoin_broadcast":"666"

I havent had a chance to try it yet, so be very careful! If both sides dont enable it, it would be a totally unfair trade

James
« Last Edit: April 23, 2014, 09:51:58 am by jl777 »
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

swartzfeger

  • Hero Member
  • *****
  • Karma: +50/-1
  • Offline Offline
  • Posts: 611
  • I bent my wookie
    • View Profile
    • https://www.instagram.com/swartzfeger/

http://209.126.71.170/NXTsubatomic_v02.zip fixes a problem where the account cant be changed

If you and your subatomic trade partner are comfortable with enabling broadcasting the transactions (after making sure they look right!) the above version has a way to enable it. In the accountinfo JSON:

"enable_bitcoin_broadcast":"666"

I havent had a chance to try it yet, so be very careful! If both sides dont enable it, it would be a totally unfair trade

James


No problems so far. Going to get a few hours sleep and see if I can pull this off with chanc3r or another partner.
Logged

jl777

  • Hero Member
  • *****
  • Karma: +718/-123
  • Offline Offline
  • Posts: 6170
    • View Profile
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

chanc3r

  • Hero Member
  • *****
  • Karma: +124/-50
  • Offline Offline
  • Posts: 1019
  • NXTInspect
    • View Profile

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
rpcport=<see below>



I had to add rpcport with the following values;

litecoin 9332
dogecoin 22555

it should have just worked but my wallets seem to have refused to listen on those ports....
good news is subatomic 4 seems to read my account info on test net, find my two wallets DOGE and LTC and connect to all of it...

I managed to create a TX but no one to share it with at the moment... SO I sent it to myself which doesn't work unfortunately...

AM_subatomic({"type":"subatomic_crypto","completed":0,"received":0,"expected":128.84901888,"sent":0,"sending":0,
"NXT":"3940521100773952218","coin":"DOGE","amount":"1000.00000000","ipaddr":"88.82.0.8","destcoin":"LTC",
"destamount":"0.10000000","destNXT":"3940521100773952218",
"destNXTcoinaddr":"DEwmsmYq3rzbMdmM6xkJpNPtPg5CS1YSNf","destNXTdestcoinaddr":"LVNE1nxeiAzx72MwY8rxw22V9BdTgNsSz6"})
« Last Edit: April 23, 2014, 04:03:02 pm by chanc3r »
Logged
NXT: 29996814460165 (NXT-JTA7-B2QR-8BFC-2V222)
@imrimr @NXTinspect
Pages: 1 2 [3] 4 5 ... 7  All
 

elective-stereophonic
elective-stereophonic
assembly
assembly