Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RPC interface fails to initialize wallet #156

Open
israellevin opened this issue Apr 8, 2014 · 3 comments
Open

RPC interface fails to initialize wallet #156

israellevin opened this issue Apr 8, 2014 · 3 comments

Comments

@israellevin
Copy link

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.

@yuzhangiot
Copy link

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

@killerstorm
Copy link
Contributor

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

@israellevin
Copy link
Author

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants