-
Notifications
You must be signed in to change notification settings - Fork 242
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
feat: Delayed block processing for Fortuna #2307
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:
⚙️ Control Options:
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
3 Skipped Deployments
|
Co-Authored-By: Jayant Krishnamurthy <[email protected]>
Co-Authored-By: Jayant Krishnamurthy <[email protected]>
…lays Co-Authored-By: Jayant Krishnamurthy <[email protected]>
apps/fortuna/src/keeper.rs
Outdated
@@ -975,12 +979,14 @@ pub async fn process_new_blocks( | |||
escalation_policy: EscalationPolicyConfig, | |||
metrics: Arc<KeeperMetrics>, | |||
fulfilled_requests_cache: Arc<RwLock<HashSet<u64>>>, | |||
chain_eth_config: EthereumConfig, |
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 pass only the block delay parameter here (not the whole config)
apps/fortuna/src/keeper.rs
Outdated
for delay in &chain_eth_config.block_delays { | ||
let adjusted_range = BlockRange { | ||
from: block_range.from + delay, | ||
to: block_range.to + delay, |
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.
the delay should be subtracted not added
Co-Authored-By: Jayant Krishnamurthy <[email protected]>
Added configurable delayed block processing to Fortuna keeper with support for multiple delays.
Changes:
Link to Devin run: https://app.devin.ai/sessions/ee151071e71646d18a712d8ce3af4e0f