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!: align staking module with mainline SDK #339

Merged
merged 4 commits into from
Aug 15, 2023

Conversation

cmwaters
Copy link

Description

Closes: #338


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)

@cmwaters cmwaters marked this pull request as ready for review August 14, 2023 14:01
@cmwaters cmwaters self-assigned this Aug 14, 2023
Comment on lines -19 to -20
NOTE DIFF FROM UPSTREAM: All proposals must have at least one `sdk.Msg` in the `messages` field.

Copy link
Author

Choose a reason for hiding this comment

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

Comment on lines -64 to 67
// Check if no Messages are proposed
if len(m.Messages) == 0 {
return sdkerrors.Wrap(types.ErrNoProposalMsgs, "Msgs length must be non-zero")
// Check that either metadata or Msgs length is non nil.
if len(m.Messages) == 0 && len(m.Metadata) == 0 {
return sdkerrors.Wrap(types.ErrNoProposalMsgs, "either metadata or Msgs length must be non-nil")
}
Copy link
Author

Choose a reason for hiding this comment

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

Copy link
Member

@evan-forbes evan-forbes left a comment

Choose a reason for hiding this comment

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

Not blocking on this since its not part of the staking module, but for posterity I think we can also remove

FlagEVMAddress = "evm-address"

@cmwaters cmwaters merged commit c899da9 into release/v0.46.x-celestia Aug 15, 2023
34 of 35 checks passed
@cmwaters cmwaters deleted the cal/revert-staking branch August 15, 2023 10:48
liamsi pushed a commit that referenced this pull request Aug 31, 2023
…rds compatibility (cosmos#13448)

* split ExportGenesis into two functions to maintain backwards compatibility (#339)

* fix tests

Co-authored-by: Nicolas Lara <nicolaslara@gmail.com>
Comment on lines -166 to -168
if serverCtx.DefaultConsensusParams != nil {
genDoc.ConsensusParams = serverCtx.DefaultConsensusParams
}
Copy link
Member

Choose a reason for hiding this comment

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

it looks like we accidently removed our ability to set default consensus parameters

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

Successfully merging this pull request may close these issues.

Revert changes to the staking module reletive to upstream v0.46
2 participants