Skip to content

Propagate transactions even if global state root not found#3867

Merged
vicsn merged 1 commit intostagingfrom
improve_propagation
Oct 4, 2025
Merged

Propagate transactions even if global state root not found#3867
vicsn merged 1 commit intostagingfrom
improve_propagation

Conversation

@vicsn
Copy link
Collaborator

@vicsn vicsn commented Sep 18, 2025

Motivation

While combing through mainnet logs, I noticed a non-trivial amount (1000 per client per hour) of "global state root not found" errors. In all likelihood, these are caused by nodes temporarily being behind. This PR should improve the network's UX by letting those transactions propagate anyway.

Analysis

The performance impact under honest conditions should not be too bad, but may be offset by #3493

An attacker will have a somewhat easier time to get their transactions propagated to cause load on the network, but if they do so with an intentionally invalid state root, it will actually become cheaper for validators to reject it.

Because we don't use custom error types, we risk changing the underlying error message. So this should help: ProvableHQ/snarkVM#2929

Test Plan

Existing tests should suffice

@vicsn vicsn requested a review from raychu86 September 18, 2025 14:06
@vicsn vicsn merged commit 9c6e42d into staging Oct 4, 2025
5 checks passed
@vicsn vicsn deleted the improve_propagation branch October 4, 2025 06:34
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