Skip to content

Improve tx accepted check#279

Merged
grarco merged 5 commits into1.0.0-maintfrom
grarco/improve-tx-accepted
Feb 18, 2025
Merged

Improve tx accepted check#279
grarco merged 5 commits into1.0.0-maintfrom
grarco/improve-tx-accepted

Conversation

@grarco
Copy link
Contributor

@grarco grarco commented Feb 18, 2025

Changes the checks on accepted inner transactions to also verify that the corresponding wrapper was successful (this covers the case in which an inner tx succeeds but then the entire batch is discarded because of something wrong with another tx of the batch).

As suggested by @Fraccaman, it also ensures that we only index gas only when all the txs in a batch are successful: in all the other cases the gas used is not guaranteed to be enough to cover the actual gas cost of the transaction and indexing these values will lead to wrong estimations provided to the clients

@grarco grarco requested a review from Fraccaman February 18, 2025 10:28
@grarco grarco force-pushed the grarco/improve-tx-accepted branch from e38e51e to f8c87f8 Compare February 18, 2025 11:09
@grarco grarco added this pull request to the merge queue Feb 18, 2025
Merged via the queue into 1.0.0-maint with commit ff7b9b1 Feb 18, 2025
14 checks passed
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