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

fix consensus catchup issue #4474

Merged
merged 2 commits into from
Aug 4, 2023
Merged

fix consensus catchup issue #4474

merged 2 commits into from
Aug 4, 2023

Conversation

GheisMohammadi
Copy link
Contributor

Issue

Current logs show many issues like the one below:

[TryCatchup] Consensus-verified block send to channel failed.

The issue is that the current code only joins consensus if the client is enabled, but it doesn't check the stream downloader. Therefore, if the node wants to disable DNS sync and only use the stream, it won't run supportSyncing, and as a result, it won't join consensus. This means that the VerifiedNewBlock channel will always be full, and new blocks will not be sent to unsynced nodes. Consequently, it will produce the catchup issue. This PR fixes this issue by adding a simple check for the downloader as well.

@GheisMohammadi GheisMohammadi force-pushed the fix/consensus_catchup branch from 53fb56a to 8740c31 Compare August 3, 2023 06:52
@GheisMohammadi GheisMohammadi force-pushed the fix/consensus_catchup branch from 8740c31 to a5634ed Compare August 3, 2023 15:06
@ONECasey ONECasey merged commit 99bb632 into dev Aug 4, 2023
@ONECasey ONECasey deleted the fix/consensus_catchup branch September 28, 2023 15:13
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.

5 participants