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 startup sync for txpool processing for bor block production #9219

Merged
merged 5 commits into from
Jan 13, 2024

Conversation

mh0lt
Copy link
Contributor

@mh0lt mh0lt commented Jan 12, 2024

When the sync loop first runs it suppresses block sync events both in the initial loop and when the blocks being processed are greater than 1000.

This fix removed the first check, because otherwise the first block received by the process ends up not getting sent to the tx pool. Which means it won't produce new block for polygon.

As well as this fix - I have also moved the gas initialization to the txpool start method rather than prompting it with a 'synthetic block event'

As the txpool start has access to the core & tx DB's it can find the current block and chain config internally so that it doesn't need to be externally activated it can just do this itself on start up. This has the advantage of making the txpool more self contained.

@mh0lt mh0lt added the polygon label Jan 12, 2024
@mh0lt mh0lt merged commit d8b91c4 into devel Jan 13, 2024
7 checks passed
@mh0lt mh0lt deleted the fix_exec_to_txpool_sync branch January 13, 2024 10:33
yperbasis added a commit that referenced this pull request Jan 24, 2024
PR #9219 missed blockGasLimit.

This PR fixes a failure in Hive test "Withdrawals Fork on Block 1
(Paris)" due to transactions excluded from block 1 because of failing
`NotTooMuchGas` check.
yperbasis added a commit that referenced this pull request Jan 24, 2024
PR #9219 missed blockGasLimit.

This PR fixes a failure in Hive test "Withdrawals Fork on Block 1
(Paris)" due to transactions excluded from block 1 because of failing
`NotTooMuchGas` check.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants