Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
fix: remove previous header in Prepare/Process Proposal + provide chain id in baseapp + fix context for verifying txs #15303
fix: remove previous header in Prepare/Process Proposal + provide chain id in baseapp + fix context for verifying txs #15303
Changes from 25 commits
5600add
a07fd6f
fbe491f
ac12759
233a4a4
fe1cd5b
257f4be
06d2021
4a79357
71d93ca
755611d
be89d62
bf4c3f2
d7e7bd8
09ae43a
a578ddb
630175a
950cd21
966dba8
820e34e
b17f178
adfac48
3f23381
3bcaa15
bc1b4c1
f5e883e
52a64aa
6b8b529
02b6ad1
143af44
f307b3b
89b90da
ed69776
814fc92
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So now we set
app.prepareProposalState.ctx
inPrepareProposal
. Is this intentional?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, so the issue here is that we were passing
ctx
to the prepareProposalHandler but runTx usesapp.prepareProposalState.ctx
, meaning that we were verifying txs against a context that didn't have the right height, consensusParams, and all the stuff we were setting to thectx
(same for processProposal). NowrunTx
uses the exact same context as the handler.This was resulting in txs passing the verification in prepareProposal but failing in processProposal once I stopped passing the previous' block header.
Also in BeginBlock and EndBlock we also apply changes to
app.deliverState.ctx
the same way as here.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
UPGRADING.md
(0.47)There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
genesis does not always have the correct genesis, in most cases the file is incorrect