Skip to content

Partial fix for nonce ordering under parallel txs#6

Merged
julienh-ssv merged 1 commit intostagefrom
fix/nonces
Oct 28, 2025
Merged

Partial fix for nonce ordering under parallel txs#6
julienh-ssv merged 1 commit intostagefrom
fix/nonces

Conversation

@julienh-ssv
Copy link

@julienh-ssv julienh-ssv commented Oct 27, 2025

This PR attempts to focus on the 80% results with only 20% code changes. The goal is to fix the issue when parallel transactions fail due to nonce collisions.

Approach:

  • Create reservations for nonce once requested
  • Reservation expires after 30s

The reservation should cover 90% of our current use cases (in e.g. frontend) and the expiration is a safety fallback in case client crashes mid-way and never uses the reserved nonce. This prevents blocking future tx that would get a higher nonce reservation.

@julienh-ssv julienh-ssv self-assigned this Oct 27, 2025
@julienh-ssv julienh-ssv merged commit 7ae17d1 into stage Oct 28, 2025
@julienh-ssv julienh-ssv deleted the fix/nonces branch October 28, 2025 06:05
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.

1 participant