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

feat: Delayed block processing for Fortuna #2307

Merged
merged 5 commits into from
Jan 30, 2025

Conversation

devin-ai-integration[bot]
Copy link
Contributor

@devin-ai-integration devin-ai-integration bot commented Jan 30, 2025

Added configurable delayed block processing to Fortuna keeper with support for multiple delays.

Changes:

  • Moved block delay configuration to EthereumConfig for per-chain configuration
  • Made delays configurable as a list to support multiple processing intervals
  • Default delay set to [5] blocks
  • Added example configuration in config.yaml with [5, 10, 20] blocks
  • Bumped minor version from 7.3.0 to 7.4.0
  • Consolidated block processing into a single function that handles both immediate and delayed processing

Link to Devin run: https://app.devin.ai/sessions/ee151071e71646d18a712d8ce3af4e0f

Copy link
Contributor Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add "(aside)" to your comment to have me ignore it.
  • Look at CI failures and help fix them

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

Copy link

vercel bot commented Jan 30, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
api-reference ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 30, 2025 4:02pm
proposals ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 30, 2025 4:02pm
staking ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 30, 2025 4:02pm
3 Skipped Deployments
Name Status Preview Comments Updated (UTC)
component-library ⬜️ Ignored (Inspect) Visit Preview Jan 30, 2025 4:02pm
entropy-debugger ⬜️ Ignored (Inspect) Visit Preview Jan 30, 2025 4:02pm
insights ⬜️ Ignored (Inspect) Visit Preview Jan 30, 2025 4:02pm

@@ -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,
Copy link
Contributor

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)

for delay in &chain_eth_config.block_delays {
let adjusted_range = BlockRange {
from: block_range.from + delay,
to: block_range.to + delay,
Copy link
Contributor

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

@jayantk jayantk merged commit de934f5 into main Jan 30, 2025
8 of 9 checks passed
@jayantk jayantk deleted the devin/1738245085-delayed-block-processing branch January 30, 2025 17:14
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.

1 participant