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

Adding a node only if it is not in the raft peer list #656

Merged
merged 1 commit into from
Mar 29, 2019

Conversation

jbhurat
Copy link
Contributor

@jbhurat jbhurat commented Mar 15, 2019

There is a panic and the raft node crashes if static-nodes.json is updated first and then the node is added by calling raft.addPeer(). The fix checks if peer exists, if it does not then it adds the peer and forces a snapshot, which was failing earlier.

Fixes #642

@jbhurat jbhurat requested review from fixanoid and jpmsam March 15, 2019 15:42
@jpmsam jpmsam merged commit e9ce8d4 into Consensys:master Mar 29, 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.

Panic: runtime error: invalid memory address or nil pointer dereference
3 participants