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

Mempool should include replay protection #170

Closed
rigelrozanski opened this issue Jul 13, 2017 · 4 comments
Closed

Mempool should include replay protection #170

rigelrozanski opened this issue Jul 13, 2017 · 4 comments

Comments

@rigelrozanski
Copy link
Contributor

Aka - check and increase the sequence number within the mempool transactions. If a block has not yet been submitted, a transaction could be rejected by the mempool if there is an unconfirmed transaction in the mempool with the same signers and sequence number

@ethanfrey
Copy link
Contributor

Sure. Seems good. I think ethermint had lots of trouble with nonces, and out of order or something...

Don't know what they did, but if this is the solution for it, we should do it, so rigel:5 and rigel:6 could both pass checktx in the same block

@ebuchman is this how to deal with the ethermint nonce issue?

@ebuchman
Copy link
Member

What am I missing? Mempool calls CheckTx which should handle replay protection.

Mempool also keeps a cache and rejects duplicate transactions that its seen. Cache is only like size 10K so eventually it rolls over and allows old duplicates ... thats where CheckTx protection really shines

@rigelrozanski
Copy link
Contributor Author

@ethanfrey @ebuchman I think we're on the same page based on these comments - This issue was regards to some design decisions being made in the unstable, which is consistent now with maintaining replay protection within checkTx, I believe was already like this in 0.6.
@ebuchman were you being sarcastic about CheckTx shining about replay protection being faulty for old old replays? this sounds like an new issue, if it's relevant to basecoing please open a new issue

@ebuchman
Copy link
Member

no sarcasm. just saying tendermint mempool tries to do basic replay protection, but doesnt guarantee it. need CheckTx for that

Thunnini referenced this issue in Thunnini/cosmos-sdk May 15, 2022
…#210)

* feat: support send and recv msg size for gRPC (#170)

(cherry picked from commit ca48456)

# Conflicts:
#	server/start.go

* codec add

Co-authored-by: Aleksandr Bezobchuk <[email protected]>
Co-authored-by: Adam Tucker <[email protected]>
sbellem pushed a commit to initc3/cosmos-sdk that referenced this issue Jan 27, 2023
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

No branches or pull requests

3 participants