-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Add feature to TXM to detect and purge stuck transactions #12881
Add feature to TXM to detect and purge stuck transactions #12881
Conversation
core/config/docs/chains-evm.toml
Outdated
# Enabled enables or disables automatically purging transactions that have been idenitified as terminally stuck (will never be included on-chain). This feature is only expected to be used by ZK chains. | ||
Enabled = false # Default | ||
# DetectionApiUrl configures the base url of a custom endpoint used to identify terminally stuck transactions. | ||
DetectionApiUrl = 'https://venus.scroll.io' # Example |
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.
Let's not use an actual Scroll API for the example doc.
DetectionApiUrl = 'https://venus.scroll.io' # Example | |
DetectionApiUrl = 'https://example.api.io' # Example |
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.
Good call! Updated in the new commit
…action-feature-in-TXM
d81da52
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.
I'm approving, although I've expressed my concerns about this implementation. I think it introduces certain complexity that will make our efforts to maintain and debug the node a bit harder. For future work, I'd suggest to explore a potentially simpler way to sync the nonce based on the on-chain mined nonce instead of tracking txs in the db.
…action-feature-in-TXM
Quality Gate passedIssues Measures |
StuckTxDetector
component that can detect stuck transaction either with a chain specific method or through a heuristicStuckTxDetector
component to know which transactions to purge which includes the following: