Skip to content

reverted TxMempool.CheckTx to previous behavior (CON-266)#3386

Merged
pompon0 merged 4 commits into
mainfrom
gprusak-mempool-revert
May 5, 2026
Merged

reverted TxMempool.CheckTx to previous behavior (CON-266)#3386
pompon0 merged 4 commits into
mainfrom
gprusak-mempool-revert

Conversation

@pompon0

@pompon0 pompon0 commented May 5, 2026

Copy link
Copy Markdown
Contributor

#3334 made TxMempool.CheckTx and Application.CheckTx return an error instead of ResponseCheckTx with an error code. This PR reverts to the previous behavior. Since there is no case in which Application.CheckTx returns unwrapped error, the signature has been tightened to always return ResponseCheckTxV2. Proxy.CheckTxSafe() keeps returning (*ResponseCheckTxV2,error) though, so that in case of panic the stack trace is not send as part of the RPC response.

@pompon0 pompon0 changed the title reverted TxMempool.CheckTx to previous behavior reverted TxMempool.CheckTx to previous behavior (CON-266) May 5, 2026
@pompon0 pompon0 requested review from sei-will and wen-coding May 5, 2026 11:51
@github-actions

github-actions Bot commented May 5, 2026

Copy link
Copy Markdown

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

BuildFormatLintBreakingUpdated (UTC)
✅ passed✅ passed✅ passed✅ passedMay 5, 2026, 12:14 PM

@codecov

codecov Bot commented May 5, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 36.11111% with 23 lines in your changes missing coverage. Please review.
✅ Project coverage is 59.11%. Comparing base (52d368f) to head (66e60d0).

Files with missing lines Patch % Lines
app/abci.go 0.00% 12 Missing ⚠️
sei-tendermint/internal/mempool/mempool.go 70.00% 2 Missing and 1 partial ⚠️
sei-cosmos/baseapp/abci.go 0.00% 2 Missing ⚠️
sei-tendermint/abci/types/application.go 0.00% 2 Missing ⚠️
sei-tendermint/abci/types/mocks/application.go 0.00% 2 Missing ⚠️
sei-tendermint/abci/types/types.go 75.00% 1 Missing ⚠️
sei-tendermint/test/e2e/app/app.go 0.00% 1 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #3386      +/-   ##
==========================================
+ Coverage   59.08%   59.11%   +0.03%     
==========================================
  Files        2100     2100              
  Lines      173008   173003       -5     
==========================================
+ Hits       102219   102279      +60     
+ Misses      61926    61868      -58     
+ Partials     8863     8856       -7     
Flag Coverage Δ
sei-chain-pr 62.84% <36.11%> (?)
sei-db 70.41% <ø> (ø)

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

Files with missing lines Coverage Δ
sei-cosmos/types/errors/abci.go 91.42% <ø> (+7.21%) ⬆️
sei-tendermint/internal/mempool/metrics.go 100.00% <100.00%> (ø)
sei-tendermint/internal/proxy/proxy.go 93.47% <100.00%> (ø)
sei-tendermint/abci/types/types.go 72.22% <75.00%> (+0.12%) ⬆️
sei-tendermint/test/e2e/app/app.go 0.00% <0.00%> (ø)
sei-cosmos/baseapp/abci.go 61.92% <0.00%> (ø)
sei-tendermint/abci/types/application.go 39.28% <0.00%> (ø)
sei-tendermint/abci/types/mocks/application.go 12.88% <0.00%> (+0.38%) ⬆️
sei-tendermint/internal/mempool/mempool.go 72.85% <70.00%> (+0.44%) ⬆️
app/abci.go 62.50% <0.00%> (-3.91%) ⬇️

... and 3 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.

@pompon0 pompon0 added this pull request to the merge queue May 5, 2026
Merged via the queue into main with commit 8310d93 May 5, 2026
38 checks passed
@pompon0 pompon0 deleted the gprusak-mempool-revert branch May 5, 2026 20:11
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.

3 participants