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

Maintain P2P connections active during sync #1417

Conversation

nicolae-leonte-go
Copy link
Contributor

When a sync is initiated by a node that has fallen behind the rest of the network mining is automatically disabled. With mining disabled the node is unable to process consensus messages sent by the other nodes. When such a message arrives the node gets a stopped engine error and the protocol handler returns (it severs the P2P connection).
This PR changes the behaviour to ignore stopped engine errors if the node is currently syncing (allowing the sync process to progress much swifter without constant interruptions).

TODO: A consensus protocol solution would be more appropriate (where the protocol is enhanced to consider only the fully synced peers). In the absence of such a solution, documentation may be useful to state that incoming consensus protocol messages are ignored by a syncing node.

@antonydenyer antonydenyer merged commit 41118d0 into Consensys:master Jun 1, 2022
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.

None yet

3 participants