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

Prevent panic in JSON-RPC server. #652

Merged
merged 1 commit into from
Apr 12, 2017
Merged

Conversation

jrick
Copy link
Member

@jrick jrick commented Apr 12, 2017

This fixes panics caused by dereferencing a nil wallet to determine if
an RPC that requires the --unsafemainnet flag when mainnet is the
active network. The fix is to pass in the active network parameters
to the RPC server and use those rather than trying to access them
through the nil wallet.

Fixes #650.

Copy link
Member

@alexlyp alexlyp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed panic, OK

This fixes panics caused by dereferencing a nil wallet to determine if
an RPC that requires the --unsafemainnet flag when mainnet is the
active network.  The fix is to pass in the active network parameters
to the RPC server and use those rather than trying to access them
through the nil wallet.
@jrick jrick merged commit 7a80d9e into decred:master Apr 12, 2017
@jrick jrick deleted the unsafemainnetpanic branch April 12, 2017 16:20
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

Successfully merging this pull request may close these issues.

Panic when request getseed on a --noinitialload wallet
2 participants