-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
chore: bump cometbft to v0.37.0-rc3 #15220
Conversation
Looks like there is something again with events... Checking. |
x/gov/client/utils/query.go
Outdated
fmt.Sprintf("%s.%s='%d'", types.EventTypeProposalDeposit, types.AttributeKeyProposalID, params.ProposalID), | ||
}, | ||
) | ||
q := fmt.Sprintf("%s.%s='%d'", types.EventTypeProposalDeposit, types.AttributeKeyProposalID, params.ProposalID) |
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.
As explained by @jmalicevic, CometBFT changed its logic for indexing events.
Because we emit two different events (one containing the message action (from baseapp) and one containing these events keys) this was returning nothing. The new logic wants all the conditions to be valid in the same event.
I've checked that at no other place in the gov module these event keys were emitted with the same attributes in another message. We can then simplify the logic.
@@ -378,28 +277,10 @@ func QueryDepositByTxQuery(clientCtx client.Context, params v1.QueryDepositParam | |||
return nil, fmt.Errorf("address '%s' did not deposit to proposalID %d", params.Depositor, params.ProposalID) | |||
} | |||
|
|||
// QueryProposerByTxQuery will query for a proposer of a governance proposal by | |||
// ID. | |||
// QueryProposerByTxQuery will query for a proposer of a governance proposal by ID. | |||
func QueryProposerByTxQuery(clientCtx client.Context, proposalID uint64) (Proposer, error) { |
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.
We could replace this one by a query in a follow-up, given that we store the proposer in the proposal.
(cherry picked from commit 41c8529) # Conflicts: # .github/workflows/lint.yml # Makefile # client/v2/go.mod # client/v2/go.sum # collections/go.mod # go.mod # go.sum # log/go.mod # simapp/go.mod # store/go.mod # store/go.sum # tests/go.mod # tests/go.sum # tools/confix/go.mod # tools/confix/go.sum # tools/cosmovisor/go.mod # tools/cosmovisor/go.sum # tools/hubl/go.mod # tools/hubl/go.sum # tools/rosetta/go.mod # tools/rosetta/go.sum # x/auth/tx/query.go # x/circuit/go.mod # x/circuit/go.sum # x/evidence/go.mod # x/evidence/go.sum # x/feegrant/go.mod # x/feegrant/go.sum # x/gov/client/utils/query.go # x/gov/client/utils/query_test.go # x/nft/go.mod # x/nft/go.sum # x/upgrade/go.mod # x/upgrade/go.sum
Description
Bumps to cometbft v0.37.0-rc3.
This will be backported to release/v0.47.x and we'll tag a v047 rc3.
Author Checklist
All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.
I have...
!
to the type prefix if API or client breaking changeCHANGELOG.md
Reviewers Checklist
All items are required. Please add a note if the item is not applicable and please add
your handle next to the items reviewed if you only reviewed selected items.
I have...
!
in the type prefix if API or client breaking change