chromaway/ngcccbase

RPC interface fails to initialize wallet

Opened this issue · 3 comments

To reproduce, run ngccc-server.py

./ngccc-server.py

Traceback (most recent call last):
  File "./ngccc-server.py", line 12, in <module>
    from ngcccbase.rpc_interface import RPCRequestHandler
  File "/root/chroma/ngcccbase/ngcccbase/rpc_interface.py", line 18, in <module>
    wallet = PersistentWallet()
TypeError: __init__() takes exactly 3 arguments (1 given)

Edit: a workaround is to change line 18 in rpc_interface.py to:

wallet = PersistentWallet(None, True)

The "True" is for testnet, so mainnet would probably be "False". This should actually come from the command flags.

Problem still exists...
Traceback (most recent call last):
File "ngccc-server.py", line 24, in
hostname = args[0]
IndexError: list index out of range

You're supposed to call it like ./ngccc-server.py localhost 8080

Commit d86bdc8 fixes this, but if I understand correctly it is now hard-coded to use testnet, and using the --testnet flag produces the following error:

Error: parameters are required
python ngccc-server.py hostname port
(ngcccbase)

Should I open a new issue for this, or leave this one open as a reminder?