Skip to content

fetcher: Sleep only after marking block as done when requeuing#2684

Merged
zzzckck merged 5 commits intobnb-chain:developfrom
ngotchac:ngotchac/requeue-fixes
Sep 11, 2024
Merged

fetcher: Sleep only after marking block as done when requeuing#2684
zzzckck merged 5 commits intobnb-chain:developfrom
ngotchac:ngotchac/requeue-fixes

Conversation

@ngotchac
Copy link
Copy Markdown
Contributor

@ngotchac ngotchac commented Sep 4, 2024

When requeuing a block (because of an unknown parent header), we should first mark the block as done before sleeping for 500ms and retrying (requeuing). Otherwise, the block fetcher will wait for 500ms before continuing its process.

zzzckck and others added 5 commits July 24, 2024 12:07
Revert "miner/worker: broadcast block immediately once sealed (bnb-chain#2576)"
Otherwise the node will be waiting for 500ms before the block fetcher
keeps processing.
buddh0
buddh0 previously approved these changes Sep 6, 2024
zzzckck
zzzckck previously approved these changes Sep 11, 2024
@zzzckck zzzckck changed the base branch from master to develop September 11, 2024 02:54
@zzzckck zzzckck dismissed stale reviews from buddh0 and themself September 11, 2024 02:54

The base branch was changed.

@zzzckck zzzckck merged commit 774d1b7 into bnb-chain:develop Sep 11, 2024
@ngotchac ngotchac deleted the ngotchac/requeue-fixes branch September 11, 2024 08:17
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.

3 participants