Skip to content

fix(rpc/pending): validate pre-confirmed data before use#3022

Merged
kkovaacs merged 2 commits intomainfrom
krisztian/work-around-pre-confirmed-data-inconsistency
Sep 25, 2025
Merged

fix(rpc/pending): validate pre-confirmed data before use#3022
kkovaacs merged 2 commits intomainfrom
krisztian/work-around-pre-confirmed-data-inconsistency

Conversation

@kkovaacs
Copy link
Contributor

@kkovaacs kkovaacs commented Sep 24, 2025

There seem to be occasional inconsistencies in the pre-confirmed data provided by the feeder gateway.

Contrary to what the documentation says, the executed transactions are not always a prefix of all transactions in the block. This breaks our assumptions on how to split the transactions into pre-confirmed and candidate sets.

To work around this, we now consider all transactions which have a matching receipt as pre-confirmed, and the rest as candidates, irrespective of the order in which they appear in the original pre-confirmed block.

Closes #3018

@kkovaacs kkovaacs marked this pull request as ready for review September 24, 2025 11:36
@kkovaacs kkovaacs requested a review from a team as a code owner September 24, 2025 11:36
Copy link
Contributor

@t00ts t00ts left a comment

Choose a reason for hiding this comment

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

LGTM!

There seem to be occasional inconsistencies in the pre-confirmed data
provided by the feeder gateway.

Contrary to what the documentation says, the executed transactions are
not always a prefix of all transactions in the block. This breaks our
assumptions on how to split the transactions into pre-confirmed and
candidate sets.

To work around this, we now consider all transactions which have a
matching receipt as pre-confirmed, and the rest as candidates,
irrespective of the order in which they appear in the original
pre-confirmed block.
@kkovaacs kkovaacs force-pushed the krisztian/work-around-pre-confirmed-data-inconsistency branch from 6b13be4 to 0c057d8 Compare September 25, 2025 08:36
@kkovaacs kkovaacs merged commit 8c92845 into main Sep 25, 2025
8 checks passed
@kkovaacs kkovaacs deleted the krisztian/work-around-pre-confirmed-data-inconsistency branch September 25, 2025 09:30
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.

Preconfirmed Tx receipt returns wrong event data

3 participants