elective-stereophonic
elective-stereophonic
Configuration file for NXTservices
Please login or register.

Login with username, password and session length
Advanced search  

News:

Latest Nxt Client: Nxt 1.11.15

Author Topic: Configuration file for NXTservices  (Read 1201 times)

HolgerD77

  • Core Dev
  • Sr. Member
  • ****
  • Karma: +49/-0
  • Offline Offline
  • Posts: 299
    • View Profile
Configuration file for NXTservices
« on: July 08, 2014, 11:07:37 am »

The entry barrier for starting to test the Multigateway is quite high, since it takes so much time for NXTservices to start.

Would it be possible to have a simple configuration file like the nxt.properties file in the NRS client where it is possible to deactive some modules/parts of NXTservices to speed-up the start process? It would be also helpful if it there would be some control about the log level to filter out the important debug messages.

Any other ideas about ease testing? Would it be possible to have an external NXTservices server running one can use to connect to providing the IP (config file as well?) to make it easier if people just want to test the GUI and not underlying functionality?
Logged
NXT-AQ9F-JC4F-NCM2-4JSXZ

VanBreuk

  • Administrator
  • Hero Member
  • *****
  • Karma: +362/-19
  • Offline Offline
  • Posts: 2772
    • View Profile
Re: Configuration file for NXTservices
« Reply #1 on: July 08, 2014, 12:18:45 pm »

The entry barrier for starting to test the Multigateway is quite high, since it takes so much time for NXTservices to start.

Yes. I understand that eventually (not sure about how soon) NXTservices should work for MGW as server side only, which will bypass the startup time.

Although now we improved that quite a lot from a user perspective, since the GUI gives a clear graphical warning for as long as startup is not finished, and the user can do stuff in the wallet (or elsewhere) while he waits, instead of having to decipher the command line output of NXTservices (or having to refresh the API page) in order to figure out when MGW is ready to operate.
« Last Edit: July 08, 2014, 12:21:01 pm by VanBreuk »
Logged
GPG Fingerprint: B020 D1C1 F289 3B2C 3577  9EAD 455D D175 5913 C7F1

HolgerD77

  • Core Dev
  • Sr. Member
  • ****
  • Karma: +49/-0
  • Offline Offline
  • Posts: 299
    • View Profile
Re: Configuration file for NXTservices
« Reply #2 on: July 08, 2014, 01:08:04 pm »

Yes, I meant that just from a developer/tester perspective.

Are there two different states of NXTservices starting? When I was testing MGW, NXTservices was somewhere in the middle of the start process (when all the blocks are counting up), error message was gone, I tested three times to generate a BTC deposit adress (+ waited for 10+ confirmations), but no deposit adress is showing up until now (NXTservices M09beta, GUI v3)?
Logged
NXT-AQ9F-JC4F-NCM2-4JSXZ

VanBreuk

  • Administrator
  • Hero Member
  • *****
  • Karma: +362/-19
  • Offline Offline
  • Posts: 2772
    • View Profile
Re: Configuration file for NXTservices
« Reply #3 on: July 08, 2014, 01:31:14 pm »

NXTservices never stops producing output in the command window. When startup is finished (that is, when the API page at http://127.0.0.1:7777 displays) you will start to see "Multigateway new RT block..." messages. That's when the warning message should disappear from the GUI and MGW GUI features should be operational.
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
Re: Configuration file for NXTservices
« Reply #4 on: July 08, 2014, 04:38:56 pm »

NXTservices never stops producing output in the command window. When startup is finished (that is, when the API page at http://127.0.0.1:7777 displays) you will start to see "Multigateway new RT block..." messages. That's when the warning message should disappear from the GUI and MGW GUI features should be operational.
After running unattended for a week, the MGW servers disappeared. Have no idea what happened, but restarting them now.

longzai is working on a purely HTML interface to MGW, basically sending AM to request deposit address and an asset xfer with comment for withdraw

For testing I have made a new control flow that makes everything available very quickly. It is in the https://github.com/jl777/pNXT repo. Currently it doesnt have the MGW handler in it, at some point I will attempt putting each handler in its own dynamically loadable plugin

Also working on massively speeding up the curl requests, which is why the startup is so slow.

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
 

elective-stereophonic
elective-stereophonic
assembly
assembly