-
Notifications
You must be signed in to change notification settings - Fork 75
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
chore(sequencer): index all ABCI events #1786
Conversation
e599795
to
527eff1
Compare
0b67513
to
94416b1
Compare
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 title and changelog should be updated to say all events are now indexed, not just send_packet ones. otherwise looks good!
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.
Couple notes:
- If abci events are toggled on every execution, then this should be in
execute_transactions
and the code not duplicated in everyfn execute_transactions_*
method. - Please expand the background section, right now it contains a placeholder.
- These changes are observable by providing a unit test on
execute_transactions
. The test section right now is equivalent to saying "this is not tested". - This should further be observable by spinning up a sequencer network and checking the provided ABCI events.
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 have updated the patch title and description a bit (arguably, this is more chore-like or feat-like than a fix for sequencer proper).
I have also linked the relevant entry in the cometbft repository (preferable over a website that is more likely to change).
Please address @Fraser999's comment re the unnecessary filter adapter when enabled all indexing.
Summary
Instructs CometBFT to index all ABCI events emitted by Sequencer.
Background
This change instructs CometBFT to index all events emitted by Sequencer by setting their field
index: true
.This allows programatically determining stuck IBC transactions to automatically trigger a timeout. Previously, the height that a given IBC packet was sent at had to be found manually before it could be passed to the Hermes CLI (Astria's IBC relayer of choice).
The indexing field is described in the CometBFT ABCI spec [1].
1: https://github.com/cometbft/cometbft/blob/16b1ed87c4b10118df10eb7175412db066bd09d5/spec/abci/abci%2B%2B_basic_concepts.md?plain=1#L318-L319
Changes
app::execute_transaction
Testing
Changelogs
Changelog updated