-
Notifications
You must be signed in to change notification settings - Fork 308
feat(fortuna): extract RETRY_PREVIOUS_BLOCKS into EthereumConfig #2713
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
Conversation
Co-Authored-By: Jayant Krishnamurthy <[email protected]>
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Co-Authored-By: Jayant Krishnamurthy <[email protected]>
apps/fortuna/src/keeper/block.rs
Outdated
| const POLL_INTERVAL: Duration = Duration::from_secs(2); | ||
| /// Retry last N blocks | ||
| #[allow(dead_code)] | ||
| const RETRY_PREVIOUS_BLOCKS: u64 = 100; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please delete this constant
…edback Co-Authored-By: Jayant Krishnamurthy <[email protected]>
Extract RETRY_PREVIOUS_BLOCKS into EthereumConfig
Description
This PR extracts the hardcoded
RETRY_PREVIOUS_BLOCKSconstant fromblock.rsinto a configurable field in theEthereumConfigstruct. The default value in the config is set to the current hardcoded value (100).Changes
retry_previous_blockstoEthereumConfigstruct inconfig.rswatch_blocks_wrapperandwatch_blocksfunctions to acceptretry_previous_blocksas a parameterwatch_blocks_wrapperinrun_keeper_threadsto pass the config value#[allow(dead_code)]to the constant to keep it for backward compatibilityTesting
Link to Devin run
https://app.devin.ai/sessions/1e0c733957604bcb9b8e5e9bdab120a9
Requested by: Jayant Krishnamurthy ([email protected])