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

WIP: Fix mempool PostCheck error bug #290

Merged
merged 5 commits into from
Jul 12, 2022
Merged

WIP: Fix mempool PostCheck error bug #290

merged 5 commits into from
Jul 12, 2022

Conversation

jaekwon
Copy link
Contributor

@jaekwon jaekwon commented Jul 11, 2022

PostCheck has a design flaw:

A checktx transaction that passes in the app's checktx state but fails postcheck would still increment the caller's sequence in the app's checktx state, causing an unexpected signature error even for subsequent txs by the same caller, until the next block (which clears the mempool).

The best solution that simplifies Tendermint is the one that moves this check constraint to the app itself, as implemented here.

Copy link
Member

@moul moul left a comment

Choose a reason for hiding this comment

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

LGTM

@moul moul merged commit c6d1e89 into master Jul 12, 2022
@moul moul deleted the mempool_postcheck_cb branch July 12, 2022 02:29
@moul moul added this to the 🏗3️⃣ test3.gno.land milestone Oct 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

2 participants