Skip to content

ethnode, main: Fix Parity 2.5 compatibility#91

Merged
shazow merged 3 commits intomasterfrom
fix-parity
Dec 5, 2019
Merged

ethnode, main: Fix Parity 2.5 compatibility#91
shazow merged 3 commits intomasterfrom
fix-parity

Conversation

@shazow
Copy link
Member

@shazow shazow commented Dec 4, 2019

Fixes #88

Parity 2.5 removed parity_set from the default IPC modules. This PR adds a compatibility check and returns a user-friendly error when it's not available. Looks like this:

agent failed: Method not found
-> Parity RPC method "parity_addReservedPeer" is not available, add "parity_set" to allowed RPC modules. For example, run parity with the flag --ipc-apis="safe,parity_set"

Additionally, Parity also now requires fully qualified enode:// strings instead of just nodeIDs for whitelisting, there's a temporary fix that just hardcodes null addresses but I'm not 100% sure it will actually do the desired thing to whitelist the nodeIDs. Opened #90 to fix this later.

@shazow shazow requested a review from ryanschneider December 4, 2019 17:03
@shazow shazow merged commit 0a271ad into master Dec 5, 2019
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.

agent: Missing RPC method (parity)

1 participant