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

fix!: update gentx val pub key input parsing #9827

Merged
merged 7 commits into from
Aug 2, 2021

Conversation

alexanderbez
Copy link
Contributor

@alexanderbez alexanderbez commented Jul 31, 2021

Description

  • Ensure input parity of validator public key input between tx staking create-validator and gentx, i.e the correct input is the full JSON payload of the public key. e.g. {"@type":"/cosmos.crypto.ed25519.PubKey","key":"<base64 payload>"}
  • Update CLI flag description.

closes: #9819


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)

@github-actions github-actions bot added C:CLI C:x/genutil genutil module issues labels Jul 31, 2021
@orijbot
Copy link

orijbot commented Jul 31, 2021

Visit https://dashboard.github.orijtech.com?pr=9827&repo=cosmos%2Fcosmos-sdk to see benchmark details.

@alexanderbez alexanderbez changed the title cli: update gentx val pub key input fix: update gentx val pub key input parsing Jul 31, 2021
@alexanderbez alexanderbez changed the title fix: update gentx val pub key input parsing fix!: update gentx val pub key input parsing Jul 31, 2021
@alexanderbez
Copy link
Contributor Author

@AmauryM should this also be targeted against an 0.43rc branch? I'm not up to speed on the latest release workflow.

@codecov
Copy link

codecov bot commented Jul 31, 2021

Codecov Report

Merging #9827 (853ed07) into master (36ab23a) will increase coverage by 0.06%.
The diff coverage is 92.53%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #9827      +/-   ##
==========================================
+ Coverage   63.47%   63.54%   +0.06%     
==========================================
  Files         566      566              
  Lines       53107    53130      +23     
==========================================
+ Hits        33711    33760      +49     
+ Misses      17488    17462      -26     
  Partials     1908     1908              
Impacted Files Coverage Δ
x/genutil/client/cli/gentx.go 0.00% <0.00%> (ø)
x/gov/client/cli/query.go 0.00% <0.00%> (ø)
x/gov/keeper/vote.go 90.32% <33.33%> (ø)
x/gov/abci.go 91.57% <75.00%> (ø)
x/gov/client/testutil/deposits.go 94.11% <97.53%> (-0.73%) ⬇️
x/genutil/client/testutil/suite.go 100.00% <100.00%> (ø)
x/gov/keeper/deposit.go 81.14% <100.00%> (ø)
x/staking/client/cli/flags.go 50.00% <100.00%> (ø)

@alexanderbez alexanderbez marked this pull request as ready for review August 1, 2021 05:00
@alexanderbez alexanderbez requested a review from aaronc as a code owner August 1, 2021 05:00
Copy link
Contributor

@amaury1093 amaury1093 left a comment

Choose a reason for hiding this comment

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

makes sense to me

CHANGELOG.md Outdated Show resolved Hide resolved
x/genutil/client/cli/gentx.go Show resolved Hide resolved
@amaury1093
Copy link
Contributor

should this also be targeted against an 0.43rc branch? I'm not up to speed on the latest release workflow.

Yes, I think it'll be good. I added the backport label

@alexanderbez alexanderbez merged commit cbac7fc into master Aug 2, 2021
@alexanderbez alexanderbez deleted the bez/9819-val-pubkey-client-updates branch August 2, 2021 15:06
mergify bot pushed a commit that referenced this pull request Aug 2, 2021
(cherry picked from commit cbac7fc)

# Conflicts:
#	CHANGELOG.md
evan-forbes pushed a commit to evan-forbes/cosmos-sdk that referenced this pull request Oct 12, 2021
evan-forbes pushed a commit to evan-forbes/cosmos-sdk that referenced this pull request Nov 1, 2021
JeancarloBarrios pushed a commit to agoric-labs/cosmos-sdk that referenced this pull request Sep 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

inconsistent gentx --pubkey CLI input in 0.43.0-rc2
3 participants