-
Notifications
You must be signed in to change notification settings - Fork 241
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
Problem: cosmos-sdk 0.46 is not used #578
Conversation
21d1d39
to
9235336
Compare
need to wait for upstream PRs to merge first. |
Codecov Report
@@ Coverage Diff @@
## main #578 +/- ##
==========================================
- Coverage 33.82% 32.93% -0.89%
==========================================
Files 33 34 +1
Lines 1558 1603 +45
==========================================
+ Hits 527 528 +1
- Misses 978 1022 +44
Partials 53 53
|
071a305
to
fd0d787
Compare
The v1 mempool currently has a limitation we might need to consider: priority mempool only allows 1 tx per sender because Tendermint doesn't understand nonces and how to provide local ordering. The SDK needs to change the nonce checks logic. |
Do you mean the priority order maybe different from nonce order? |
No, the pool will reject the later tx that has a bigger nonce if it has the same sender. https://github.com/tendermint/tendermint/blob/main/mempool/v1/mempool.go#L484-L502 |
Hmm, I think it'll be reject by checkTx anyway, due to nonce mismatch. But is there a plan to support future list though, to hold the txs with future nonce for a while. |
hold txs in mempool after we propose the block could be done by ABCI++ via
|
that's for the tx that's already in the mempool, but current issue is it won't include multiple txs for same sender in the first place. Even if it include multiple txs in mempoo,, the other issue is it won't include them into blocks in the nonce order. |
/runsim |
Simulation tests started and triggered by |
/runsim |
Simulation tests started and triggered by |
/runsim |
Simulation tests started and triggered by |
/runsim |
Simulation tests started and triggered by |
/runsim |
Simulation tests started and triggered by |
/runsim |
Simulation tests started and triggered by |
|
👮🏻👮🏻👮🏻 !!!! REFERENCE THE PROBLEM YOUR ARE SOLVING IN THE PR TITLE AND DESCRIBE YOUR SOLUTION HERE !!!! DO NOT FORGET !!!! 👮🏻👮🏻👮🏻
PR Checklist:
make
)make test
)go fmt
)golangci-lint run
)go list -json -m all | nancy sleuth
)Thank you for your code, it's appreciated! :)