Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump nonce even if tx fails #1778

Merged
merged 1 commit into from
Aug 12, 2024
Merged

Bump nonce even if tx fails #1778

merged 1 commit into from
Aug 12, 2024

Conversation

codchen
Copy link
Collaborator

@codchen codchen commented Jul 23, 2024

Describe your changes and provide context

Due to the way tendermint mempool works, it is possible for transactions that pass ante handlers during CheckTx to fail during DeliverTx. In such cases, we still want nonce to be incremented for those transactions.

corresponding change in sei-cosmos: sei-protocol/sei-cosmos#529

Testing performed to validate your change

integration test

@codchen codchen requested a review from philipsu522 July 23, 2024 05:12
@codchen codchen force-pushed the always-bump-nonce branch 2 times, most recently from 697f12e to fa96d76 Compare July 24, 2024 05:35
Copy link

codecov bot commented Jul 24, 2024

Codecov Report

Attention: Patch coverage is 27.27273% with 8 lines in your changes missing coverage. Please review.

Project coverage is 60.76%. Comparing base (e8e4b3b) to head (e9dc4e9).
Report is 135 commits behind head on main.

Files Patch % Lines
x/evm/ante/basic.go 20.00% 7 Missing and 1 partial ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1778      +/-   ##
==========================================
- Coverage   61.64%   60.76%   -0.89%     
==========================================
  Files         365      380      +15     
  Lines       26178    27975    +1797     
==========================================
+ Hits        16138    16998     +860     
- Misses       8967     9830     +863     
- Partials     1073     1147      +74     
Files Coverage Δ
app/ante.go 53.57% <100.00%> (-0.55%) ⬇️
x/evm/ante/basic.go 61.29% <20.00%> (-21.32%) ⬇️

... and 81 files with indirect coverage changes

@codchen codchen merged commit c2d7925 into main Aug 12, 2024
49 of 50 checks passed
@codchen codchen deleted the always-bump-nonce branch August 12, 2024 14:15
yzang2019 added a commit that referenced this pull request Aug 15, 2024
* main:
  Add more DEX dapp tests (#1809)
  Add basic LST integration tests  (#1814)
  Allow CW->ERC pointers to be called through wasmd precompile (#1785)
  Bump nonce even if tx fails (#1778)
  Fix docker setup for local cluster (#1806)
  Tune Configs (#1813)
  V5.7.5 release (#1805)
  Evidence Max Bytes Update (#1812)
  Add dApp Tests (#1802)
  [EVM] Tune configs (#1800)
  Revert dex removal (#1801)
  Do not charge gas for feecollector address query (#1795)
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