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

chore: bump cometbft to v0.37.0-rc3 #15220

Merged
merged 6 commits into from
Mar 1, 2023
Merged

chore: bump cometbft to v0.37.0-rc3 #15220

merged 6 commits into from
Mar 1, 2023

Conversation

julienrbrt
Copy link
Member

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...

  • included the correct type prefix in the PR title
  • added ! to the type prefix if API or client breaking change
  • targeted the correct branch (see PR Targeting)
  • provided a link to the relevant issue or specification
  • followed the guidelines for building modules
  • included the necessary unit and integration tests
  • added a changelog entry to CHANGELOG.md
  • included comments for documenting Go code
  • updated the relevant documentation or specification
  • reviewed "Files changed" and left comments if necessary
  • confirmed all CI checks have passed

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...

  • confirmed the correct type prefix in the PR title
  • confirmed ! in the type prefix if API or client breaking change
  • confirmed all author checklist items have been addressed
  • reviewed state machine logic
  • reviewed API design and naming
  • reviewed documentation is accurate
  • reviewed tests and test coverage
  • manually tested (if applicable)

@julienrbrt julienrbrt requested a review from a team as a code owner February 28, 2023 23:43
@julienrbrt julienrbrt added the backport/v0.47.x PR scheduled for inclusion in the v0.47's next stable release label Feb 28, 2023
@github-actions github-actions bot added C:CLI C:Confix Issues and PR related to Confix C:Cosmovisor Issues and PR related to Cosmovisor C:Hubl Tool: Hubl C:Rosetta Issues and PR related to Rosetta C:Store C:x/circuit C:x/evidence C:x/feegrant C:x/nft C:x/upgrade Type: Build labels Feb 28, 2023
@julienrbrt
Copy link
Member Author

Looks like there is something again with events... Checking.

fmt.Sprintf("%s.%s='%d'", types.EventTypeProposalDeposit, types.AttributeKeyProposalID, params.ProposalID),
},
)
q := fmt.Sprintf("%s.%s='%d'", types.EventTypeProposalDeposit, types.AttributeKeyProposalID, params.ProposalID)
Copy link
Member Author

@julienrbrt julienrbrt Mar 1, 2023

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) {
Copy link
Member Author

@julienrbrt julienrbrt Mar 1, 2023

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.

@julienrbrt julienrbrt merged commit 41c8529 into main Mar 1, 2023
@julienrbrt julienrbrt deleted the julien/cometbft branch March 1, 2023 15:30
mergify bot pushed a commit that referenced this pull request Mar 1, 2023
(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
julienrbrt added a commit that referenced this pull request Mar 1, 2023
Co-authored-by: Julien Robert <julien@rbrt.fr>
larry0x pushed a commit to larry0x/cosmos-sdk that referenced this pull request May 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport/v0.47.x PR scheduled for inclusion in the v0.47's next stable release C:CLI C:collections C:Confix Issues and PR related to Confix C:Cosmovisor Issues and PR related to Cosmovisor C:Hubl Tool: Hubl C:log C:orm C:Rosetta Issues and PR related to Rosetta C:Store C:x/auth C:x/circuit C:x/evidence C:x/feegrant C:x/gov C:x/nft C:x/tx C:x/upgrade Type: Build Type: CI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants