elective-stereophonic
elective-stereophonic
NXTservices v03, includes multigateway deposit support for BTC, LTC, DOGE
Please login or register.

Login with username, password and session length
Advanced search  

News:

Latest Stable Nxt Client: Nxt 1.12.2

Pages: 1 ... 3 4 [5]  All

Author Topic: NXTservices v03, includes multigateway deposit support for BTC, LTC, DOGE  (Read 17695 times)

valarmg

  • Hero Member
  • *****
  • Karma: +178/-57
  • Offline Offline
  • Posts: 1766
    • View Profile


init_NXTsync: error contacting (209.126.75.158), try again
make sure you are synced to atomic clock
if you are off by more than 3 seconds you get rejected

That was the problem, I was off by 4 seconds. Thanks.

Two other toplevel issues. These happen intermittently, sometimes the client works fine, other times I get these problems.

1. Program will run, but the websocket connection status shows as: "Not initialized"
The webpage won't show the whole html api. Instead it'll only show down as far as the Nodecoins cashout.
The following text appears in the client window when I load the webpage:
    GET URI = / n.0
    Host = 127.0.0.1:7777 n.2
    Connection = keep-alive n.3
    Accept: = text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*
/*;q=0.8 n.18
    Accept-Encoding: = gzip,deflate,sdch n.20
    Accept-Language: = en-US,en;q=0.8 n.21
    Cache-Control: = max-age=0 n.23
couldnt load.(/tmp/NXTprotocol.html), testforms len 1093


2. Program will run, but it'll never stop spitting out text reports of blocks in the client (websocket works fine), and then the program will end itself. The below text appears before it ends:
HIST Waiting for hashtable queue to catchup: 1400432077
HIST Historical processing has finished: 1400432077
Start coinloop
get_confirmed_deposits BTC returns 0
get_confirmed_deposits LTC returns 0
get_confirmed_deposits DOGE returns 0
NXT.multigateway DOGE BALANCE 11.22215432 remaining t0.00000000 s0.00000000 | d1
1.22215432 t11.22215432 w0.00000000 s0.00000000
Logged
NXT-CSED-4PK5-AR4V-6UB5V

VanBreuk

  • Hero Member
  • *****
  • Karma: +362/-19
  • Offline Offline
  • Posts: 2772
    • View Profile

Quote from: valarmg
Program will run, but it'll never stop spitting out text reports of blocks in the client...

This error has been reproduced by several people in v03 under Windows including myself, regardless of setAccountInfo... it should be fixed in the next release.

open http://127.0.0.1:7777/
displayed:
Quote
{"requestType":"dispNXTacct","NXT":"18228074557342041637","coin":"","assetid":""}multigatewayAPI -> { "NXTaddr":   "18228074557342041637", "coinaccts":   [], "numassets": 0, "numcoinaccts":   9 }
what should I do following?
Any Manual or turorial?
any help?
thanks.

Okay, so NXTservices has generated a shiny new test account for you :) First, you need to fund 18228074557342041637 with some testNXT if you haven't done so yet.

Then, you can open the NRS client and set a name for your account which you will need for the chat... that's clicking in 'No Name Set' an defining the form fields as

Name: YOUR_NAME
Description: {"username":"YOUR_NAME","group":"NXTsubatomic"}

Where you get to choose YOUR_NAME, and actually the "group" parameter is not mandatory but will save you a step if you want to use the chat in the console window ("group" sets the default chat group to join).

Now I can hear you asking - "Wait a minute... in the first place, how do I unlock my test account in the client without the secret passphrase???"

As you start NXTservices, you will find a line like this in the console:

Nxt.18228074557342041637 Nxtsecret.(STRING_HERE)

STRING_HERE is the password for the 18228074557342041637 account.

Hope this helps.

Logged
GPG Fingerprint: B020 D1C1 F289 3B2C 3577  9EAD 455D D175 5913 C7F1

jl777

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


init_NXTsync: error contacting (209.126.75.158), try again
make sure you are synced to atomic clock
if you are off by more than 3 seconds you get rejected

That was the problem, I was off by 4 seconds. Thanks.

Two other toplevel issues. These happen intermittently, sometimes the client works fine, other times I get these problems.

1. Program will run, but the websocket connection status shows as: "Not initialized"
The webpage won't show the whole html api. Instead it'll only show down as far as the Nodecoins cashout.
The following text appears in the client window when I load the webpage:
    GET URI = / n.0
    Host = 127.0.0.1:7777 n.2
    Connection = keep-alive n.3
    Accept: = text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*
/*;q=0.8 n.18
    Accept-Encoding: = gzip,deflate,sdch n.20
    Accept-Language: = en-US,en;q=0.8 n.21
    Cache-Control: = max-age=0 n.23
couldnt load.(/tmp/NXTprotocol.html), testforms len 1093


2. Program will run, but it'll never stop spitting out text reports of blocks in the client (websocket works fine), and then the program will end itself. The below text appears before it ends:
HIST Waiting for hashtable queue to catchup: 1400432077
HIST Historical processing has finished: 1400432077
Start coinloop
get_confirmed_deposits BTC returns 0
get_confirmed_deposits LTC returns 0
get_confirmed_deposits DOGE returns 0
NXT.multigateway DOGE BALANCE 11.22215432 remaining t0.00000000 s0.00000000 | d1
1.22215432 t11.22215432 w0.00000000 s0.00000000
I believe I have fixed these issues, but it is good that you are reproducing them!
Keep pounding away at v03. That way when v04 comes out you can quickly do a regression test to make sure it is fixed

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

CoinTropololis_JustaBit

  • Hero Member
  • *****
  • Karma: +144/-11
  • Offline Offline
  • Posts: 727
    • View Profile

Should we be reaching out for testers/developers in the Bitcoin/Litecoin/Doge communities to assist? This not only benefits Nxt, it also benefits their communities.

jl777

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

Should we be reaching out for testers/developers in the Bitcoin/Litecoin/Doge communities to assist? This not only benefits Nxt, it also benefits their communities.
As soon as the NXT testers arent able to easily find bugs, its a great idea.
Also a great way to get new people into NXT.

I got hit with an unexpected one week delay from all the financings, but I think it was worth it
Now that the assets are issued, TEAM is in place, the roadmap is done internally. I expect I can go back to the more typical 90% coding ratio
I volunteered to help sephr with his dividending, thinking that it would be a simple task. I also though it would be a nice piece of the puzzle to have and an easy project to get back into coding mode.

Unexpectedly the current AE API is missing a few things that would have made it easy, so I am having to construct a fairly large amount of code to essentially generate a set of AE trades to add to each block's transactions. Anyway, this is something all asset owners will need and I am not sure when it will be part of the NXT core.

So, I will push on and complete this and make it part of NXTservices_v04, dividending is an important part of AE functionality, even if only a few people have to use it, all of NXT benefits.

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

MrV777

  • Hero Member
  • *****
  • Karma: +115/-4
  • Offline Offline
  • Posts: 991
    • View Profile

My brain must not be fully working today  ???
I am trying to give NXTservices a try on my MAC.  I have NRS 1.1.3 running on the testNet and I try to start NXTservices the same way I start NRS.  By going to the terminal and typing
Code: [Select]
sudo ./NXTservices_v03_macthe output of that is
Code: [Select]
sudo: ./NXTservices_v03_mac: command not foundI tried just double clicking it too, but that just opens textEdit.

 ???

Thank you in advance
Logged
NXT: NXT-BK2J-ZMY4-93UY-8EM9V
NXT nodes: 209.222.98.250, 216.155.128.10

VanBreuk

  • Hero Member
  • *****
  • Karma: +362/-19
  • Offline Offline
  • Posts: 2772
    • View Profile

Weird. In the terminal session, are you located in the folder where NXTservices_v03_mac was extracted?

Logged
GPG Fingerprint: B020 D1C1 F289 3B2C 3577  9EAD 455D D175 5913 C7F1

MrV777

  • Hero Member
  • *****
  • Karma: +115/-4
  • Offline Offline
  • Posts: 991
    • View Profile

Weird. In the terminal session, are you located in the folder where NXTservices_v03_mac was extracted?

Yea, I must be missing something simple.  I am in the right directory I believe:
Code: [Select]
ls
Code: [Select]
NXTservices_v03.exe libsodium.dll
NXTservices_v03_mac libcurl.dll libssh2.dll

Tried running it again with the same outcome:
Code: [Select]
sudo ./NXTservices_v03_mac
Code: [Select]
sudo: ./NXTservices_v03_mac: command not found
Logged
NXT: NXT-BK2J-ZMY4-93UY-8EM9V
NXT nodes: 209.222.98.250, 216.155.128.10

VanBreuk

  • Hero Member
  • *****
  • Karma: +362/-19
  • Offline Offline
  • Posts: 2772
    • View Profile

I'm not running a Mac so I cannot do a parallel test right now, but it might be a PATH issue. What's the output for

Code: [Select]
echo $PATH?

And where's your extracted NXTservices folder located?
Logged
GPG Fingerprint: B020 D1C1 F289 3B2C 3577  9EAD 455D D175 5913 C7F1

MrV777

  • Hero Member
  • *****
  • Karma: +115/-4
  • Offline Offline
  • Posts: 991
    • View Profile

I'm not running a Mac so I cannot do a parallel test right now, but it might be a PATH issue. What's the output for

Code: [Select]
echo $PATH?

And where's your extracted NXTservices folder located?

VanBreuk, thank you for the help.  This is echo $PATH:
Code: [Select]
/opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin
My extracted folder is in my Downloads folder
Logged
NXT: NXT-BK2J-ZMY4-93UY-8EM9V
NXT nodes: 209.222.98.250, 216.155.128.10

VanBreuk

  • Hero Member
  • *****
  • Karma: +362/-19
  • Offline Offline
  • Posts: 2772
    • View Profile

Assuming Downloads is in your home folder, you could try the full path. What's the result for

Code: [Select]
~/Downloads/NXTservices/NXTservices_v03_macor
Code: [Select]
sudo ~/Downloads/NXTservices/NXTservices_v03_mac?
Logged
GPG Fingerprint: B020 D1C1 F289 3B2C 3577  9EAD 455D D175 5913 C7F1

MrV777

  • Hero Member
  • *****
  • Karma: +115/-4
  • Offline Offline
  • Posts: 991
    • View Profile

Assuming Downloads is in your home folder, you could try the full path. What's the result for

Code: [Select]
~/Downloads/NXTservices/NXTservices_v03_macor
Code: [Select]
sudo ~/Downloads/NXTservices/NXTservices_v03_mac?

Same output  :(
Code: [Select]
sudo: /Users/.../Downloads/NXTservices/NXTservices_v03_mac: command not found
I'll try the most basic fix (the one I should have tried right away) and restart my computer, hopefully that will fix it.
Thank you for the help
Logged
NXT: NXT-BK2J-ZMY4-93UY-8EM9V
NXT nodes: 209.222.98.250, 216.155.128.10

jl777

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

http://209.126.71.170/NXTservices_div0.zip
THIS USES MAINNET but it does not need an acct or acct password

This is from the latest source base, but I disabled most things. It is only for Mac, only one file needed
I only made this release for dividend calculations

usage is:
./NXTservices_div0 DIV <assetid> <blocknum>

If you leave off both assetid and blocknum, it will do the calculation for all assets
lots of stuff will appear on the screen and it will create assetstats.txt with JSON for the NXT account balances for the corresponding asset

I am battling with Windows build process for now, but I am hoping we can get this validated so the asset owners out there can use it to get automated dividend processing. From the JSON data it should be pretty easy to loop through and sendMoney for the actual dividend process. I leave that task to somebody else. The hard part was getting the individual balances at any arbitrary blocknumber

Now, I only tested matching the balances with the latest block because I could use the getAccount API to verify it matches my calculations. One of the reasons this took so long is that the only way I can think of to verify dividend allocations at an arbitrary block is to manually verify it.

I suggest starting with assets that dont have many transactions

James

P.S. Now that this code is fresh in my mind I could get aggregated trading performance for each NXT acct if people want that.
« Last Edit: May 19, 2014, 09:53:05 pm 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

chanc3r

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

Started with jl777hodl
command line ./NXTservices_div0 DIV 138000 6932037131189568014
logfile =
no assetstats.txt file produced

failed after several minutes with
Segmentaton Fault: 11
Loads of curl_easy_perform failures - all getTransaction
Log fie (minus the curl failures is here) https://dl.dropboxusercontent.com/u/53047281/NXTservice_div0.log


code location? or email me?
Logged
NXT: 29996814460165 (NXT-JTA7-B2QR-8BFC-2V222)
@imrimr @NXTinspect

jl777

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

Started with jl777hodl
command line ./NXTservices_div0 DIV 138000 6932037131189568014
logfile =
no assetstats.txt file produced

failed after several minutes with
Segmentaton Fault: 11
Loads of curl_easy_perform failures - all getTransaction
Log fie (minus the curl failures is here) https://dl.dropboxusercontent.com/u/53047281/NXTservice_div0.log


code location? or email me?
It is getting pretty far.
does it always work at the beginning? If so, I think I can fix it

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

Started with jl777hodl
command line ./NXTservices_div0 DIV 138000 6932037131189568014
logfile =
no assetstats.txt file produced

failed after several minutes with
Segmentaton Fault: 11
Loads of curl_easy_perform failures - all getTransaction
Log fie (minus the curl failures is here) https://dl.dropboxusercontent.com/u/53047281/NXTservice_div0.log


code location? or email me?
http://209.126.71.170/NXTservices_div1.zip
changed libcurl calling method, hopefully it will fix things
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

MrV777

  • Hero Member
  • *****
  • Karma: +115/-4
  • Offline Offline
  • Posts: 991
    • View Profile


Now it needs MSVCR120.dll!  ;D
I'l try to find it ::)

I think you need this:

http://www.microsoft.com/en-us/download/details.aspx?id=40784
Yes, and it is important to install x86 version ever on x64 Windows!  ::)
But now it says "LIBEAY32.dll missing"   :'(

EDIT1:
Oh, what a pain! >:(
After dealing with LIBEAY32.dll - openssl fixes it (http://slproweb.com/download/Win32OpenSSL_Light-1_0_1g.exe) it says MSVCR110.dll missing! :'( :'(
This time it is http://www.microsoft.com/ru-ru/download/details.aspx?id=30679  ::)

Just so you know, for v03 I had to install these on my windows 7 computer:
http://slproweb.com/download/Win32OpenSSL_Light-1_0_1g.exe
http://www.microsoft.com/en-us/download/details.aspx?id=40784

Edit: I must be doing something wrong trying to get the services running.  On two MAC computers I get:
NXTservices_v03_mac: command not found
On my windows 7 computer, I finally got all the dlls installed, I run the exe.  It looks like it works, I see user name:
and than it says a ton of lines about NXT...HIST timestamp...lag...NEW block... (There's a bunch of numbers in there, but it keeps scrolling like crazy).  After about 20 seconds of that, the command prompt window just closes...
« Last Edit: May 20, 2014, 07:06:34 pm by mrv777 »
Logged
NXT: NXT-BK2J-ZMY4-93UY-8EM9V
NXT nodes: 209.222.98.250, 216.155.128.10

valarmg

  • Hero Member
  • *****
  • Karma: +178/-57
  • Offline Offline
  • Posts: 1766
    • View Profile


Edit: I must be doing something wrong trying to get the services running.  On two MAC computers I get:
NXTservices_v03_mac: command not found
On my windows 7 computer, I finally got all the dlls installed, I run the exe.  It looks like it works, I see user name:
and than it says a ton of lines about NXT...HIST timestamp...lag...NEW block... (There's a bunch of numbers in there, but it keeps scrolling like crazy).  After about 20 seconds of that, the command prompt window just closes...

I think that's the current state of the windows version. I believe those bugs will be fixed in version 04 which will be out soon.
Logged
NXT-CSED-4PK5-AR4V-6UB5V

jl777

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


Edit: I must be doing something wrong trying to get the services running.  On two MAC computers I get:
NXTservices_v03_mac: command not found
On my windows 7 computer, I finally got all the dlls installed, I run the exe.  It looks like it works, I see user name:
and than it says a ton of lines about NXT...HIST timestamp...lag...NEW block... (There's a bunch of numbers in there, but it keeps scrolling like crazy).  After about 20 seconds of that, the command prompt window just closes...

I think that's the current state of the windows version. I believe those bugs will be fixed in version 04 which will be out soon.
for v03, you need to set your name or it isnt happy
the mac issue is very strange, v04 will probably have the same problem as I have not been able to duplicate it and cant think of how the Mac OS cant find the file. Maybe it losts its executable privs?
if you "ls -l" does it display "x"?
if so do a "chmod +x <filename>"
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

allwelder

  • Hero Member
  • *****
  • Karma: +196/-13
  • Offline Offline
  • Posts: 1867
  • NxtChina.org
    • View Profile
    • NxtChina.org

Quote from: valarmg
Program will run, but it'll never stop spitting out text reports of blocks in the client...

This error has been reproduced by several people in v03 under Windows including myself, regardless of setAccountInfo... it should be fixed in the next release.

open http://127.0.0.1:7777/
displayed:
Quote
{"requestType":"dispNXTacct","NXT":"18228074557342041637","coin":"","assetid":""}multigatewayAPI -> { "NXTaddr":   "18228074557342041637", "coinaccts":   [], "numassets": 0, "numcoinaccts":   9 }
what should I do following?
Any Manual or turorial?
any help?
thanks.

Okay, so NXTservices has generated a shiny new test account for you :) First, you need to fund 18228074557342041637 with some testNXT if you haven't done so yet.

Then, you can open the NRS client and set a name for your account which you will need for the chat... that's clicking in 'No Name Set' an defining the form fields as

Name: YOUR_NAME
Description: {"username":"YOUR_NAME","group":"NXTsubatomic"}

Where you get to choose YOUR_NAME, and actually the "group" parameter is not mandatory but will save you a step if you want to use the chat in the console window ("group" sets the default chat group to join).

Now I can hear you asking - "Wait a minute... in the first place, how do I unlock my test account in the client without the secret passphrase???"

As you start NXTservices, you will find a line like this in the console:

Nxt.18228074557342041637 Nxtsecret.(STRING_HERE)

STRING_HERE is the password for the 18228074557342041637 account.

Hope this helps.
try now.
Logged
NxtChina |Weibo |Twitter Donation welcomed:NXT-APL9-66GU-K8LY-B3JJJ
Pages: 1 ... 3 4 [5]  All
 

elective-stereophonic
elective-stereophonic
assembly
assembly