Skip to content

fix(giga): bail on wrong nonce as v2 does#2963

Open
arajasek wants to merge 1 commit intomainfrom
asr/fix-nonce-validation
Open

fix(giga): bail on wrong nonce as v2 does#2963
arajasek wants to merge 1 commit intomainfrom
asr/fix-nonce-validation

Conversation

@arajasek
Copy link
Contributor

Describe your changes and provide context

Reopening #2877 against main

fixes mismatch of this block. there are 2 txs (don't show up on seiscan) that have invalid nonces:

V2's log: "nonce too high: address 0x6a9dE37D180C56b7E9362d7688ACa8B7acEb425C, tx: 23213 state: 23211"

V2's log: "nonce too high: address 0x4A7d9e41340d1dba4d157fdE37Ed1697E42CBC7b, tx: 7423188 state: 7423187"

In this case we just bail WITHOUT bumping the nonce.

Testing performed to validate your change

tests pass, get us past the block in question.

@github-actions
Copy link

github-actions bot commented Feb 23, 2026

The latest Buf updates on your PR. Results from workflow Buf / buf (pull_request).

BuildFormatLintBreakingUpdated (UTC)
✅ passed✅ passed✅ passed✅ passedFeb 24, 2026, 3:10 PM

@codecov
Copy link

codecov bot commented Feb 23, 2026

Codecov Report

❌ Patch coverage is 0% with 13 lines in your changes missing coverage. Please review.
✅ Project coverage is 52.11%. Comparing base (1b1e9a2) to head (0a75710).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
app/app.go 0.00% 13 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff             @@
##             main    #2963       +/-   ##
===========================================
- Coverage   58.14%   52.11%    -6.03%     
===========================================
  Files        2107       20     -2087     
  Lines      173322     3730   -169592     
===========================================
- Hits       100780     1944    -98836     
+ Misses      63602     1611    -61991     
+ Partials     8940      175     -8765     
Flag Coverage Δ
sei-chain 49.83% <0.00%> (-8.29%) ⬇️
sei-db 68.49% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
app/app.go 56.79% <0.00%> (-15.59%) ⬇️

... and 2090 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@arajasek arajasek force-pushed the asr/fix-nonce-validation branch from 145d865 to 0a75710 Compare February 24, 2026 15:08
expectedNonce := app.GigaEvmKeeper.GetNonce(ctx, sender)
txNonce := ethTx.Nonce()
if txNonce != expectedNonce {
// Calculate intrinsic gas for reporting (V2 reports this as gasUsed)
Copy link
Collaborator

Choose a reason for hiding this comment

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

can you link where this happens for v2? from what I see the v2 ante handler would just exit with 0 gas used.

not blocking though since gas used no longer affects consensus

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants