Skip to content
This repository has been archived by the owner on Oct 15, 2024. It is now read-only.

[R4R] add timeout for catch up condition check with no peers #174

Merged
merged 3 commits into from
Jan 7, 2023

Conversation

owen-reorg
Copy link
Contributor

In fast sync mode, normally it needs at least 1 peer to be considered caught up.
There is a change that a node with the majority of voting power has no peers, it will never have changes to catch up and switch to consensus reactor, resulting in stopping the chain.
So we add a 10 minutes timeout to prevent this case.

  • Referenced an issue explaining the need for the change
  • Updated all relevant documentation in docs
  • Updated all code comments where relevant
  • Wrote tests
  • Updated CHANGELOG_PENDING.md

@unclezoro unclezoro merged commit 119afd7 into develop Jan 7, 2023
@realuncle realuncle mentioned this pull request Jan 7, 2023
5 tasks
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants