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 provider reopener, rework nonce cache #481

Merged
merged 2 commits into from
Mar 10, 2025
Merged

Conversation

dvush
Copy link
Contributor

@dvush dvush commented Mar 10, 2025

The provider factory reopener's concept of "last_consistent_block" was incorrect, as database consistency was compromised for previously checked blocks. This caused the rbuilder to miss some slots due to its inability to reopen the database during slot execution.

The nonce cache has been refactored to use database transactions instead of database handles. This change simplifies the code and reduces the need for database consistency checks.

📝 Summary

💡 Motivation and Context


✅ I have completed the following steps:

  • Run make lint
  • Run make test
  • Added tests (if applicable)

The provider factory reopener's concept of "last_consistent_block" was incorrect, as database consistency was compromised for previously checked blocks. This caused the rbuilder to miss some slots due to its inability to reopen the database during slot execution.

The nonce cache has been refactored to use database transactions instead of database handles. This change simplifies the code and reduces the need for database consistency checks.
@dvush dvush requested review from ZanCorDX and ferranbt as code owners March 10, 2025 17:25
@ZanCorDX ZanCorDX merged commit 2266b21 into develop Mar 10, 2025
4 checks passed
@ZanCorDX ZanCorDX deleted the fix_missing_block_hashes branch March 10, 2025 18:20
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.

2 participants