Skip to content

fix: correctly track reverted hashes#498

Merged
avalonche merged 1 commit into
mainfrom
ash-kvtltkmklkwy
May 8, 2026
Merged

fix: correctly track reverted hashes#498
avalonche merged 1 commit into
mainfrom
ash-kvtltkmklkwy

Conversation

@akundaz
Copy link
Copy Markdown
Contributor

@akundaz akundaz commented May 7, 2026

📝 Summary

Use the new pool wrapper to manage the reverted txs cache. This fixes a bug where tracking the reverted hashes was dependent on the --builder.log-pool-transactions flag. This was not caught by our integration tests because the integration tests spin up the tx pool monitor regardless of the value of that flag.

💡 Motivation and Context

The reverted cache should be managed closely to the pool


✅ I have completed the following steps:

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

fix reverted cache
@akundaz akundaz self-assigned this May 7, 2026

let inner_pool = op_pool_builder.build_pool(ctx, evm_config).await?;

let reverted_cache = enable_revert_protection.then_some(setup_revert_protection(
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why do we need a reverted cache? is it for easier test assertions?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no this is a core feature for revert protection functionality. it's so senders can track if their txs have been evicted from the pool because they were reverted

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we don't expose rpc methods for transaction receipts though? rollup-boost only forwards bundles and raw transactions

Copy link
Copy Markdown
Collaborator

@avalonche avalonche May 8, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if its for debug purposes, the cache size should be configurable - right now the bundle request rate is 300 req/s for reverted transactions on mainnet when the cache max_capacity is only 100

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this pr is meant to just fix the bug, not add features. i think the cache capacity should be configured in terms of storage size (like configured to a max of 4mb).

and i thought the plan was to expose the rpc for receipts at some point

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no plans for receipts rpc

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is what i'm referring to #188

@avalonche avalonche merged commit 4ff9429 into main May 8, 2026
4 checks passed
@avalonche avalonche deleted the ash-kvtltkmklkwy branch May 8, 2026 19:21
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