-
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
R4R: Support Vesting Accounts in add-genesis-account
#3549
Conversation
cmd/gaia/init/genesis_accts.go
Outdated
func AddGenesisAccountCmd(ctx *server.Context, cdc *codec.Codec) *cobra.Command { | ||
cmd := &cobra.Command{ | ||
Use: "add-genesis-account [address_or_key_name] [coin][,[coin]]", | ||
Short: "Add genesis account to genesis.json", | ||
Short: "Add genesis account to a genesis file", |
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.
I'd second this new wording if were to support an extra optional flag/argument to provide the genesis.json; needless to say that it should default to gaiad
default genesis file.
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.
A bit lost here, are you asking me to revert?
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.
I think what @alessio is saying is that there is no way for this command to specify what the particular file path to genesis is, so to a genesis file
is maybe overselling.
Codecov Report
@@ Coverage Diff @@
## develop #3549 +/- ##
===========================================
+ Coverage 57.1% 59.57% +2.47%
===========================================
Files 179 131 -48
Lines 14168 9710 -4458
===========================================
- Hits 8090 5785 -2305
+ Misses 5597 3585 -2012
+ Partials 481 340 -141 |
Codecov Report
@@ Coverage Diff @@
## develop #3549 +/- ##
===========================================
+ Coverage 57.1% 59.59% +2.48%
===========================================
Files 179 131 -48
Lines 14168 9708 -4460
===========================================
- Hits 8090 5785 -2305
+ Misses 5597 3583 -2014
+ Partials 481 340 -141 |
sdk.NewCoin(denom, staking.TokensFromTendermintPower(150)), | ||
} | ||
|
||
vestingCoins = sdk.Coins{ |
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.
++
@@ -120,6 +129,12 @@ func InitFixtures(t *testing.T) (f *Fixtures) { | |||
|
|||
// Start an account with tokens | |||
f.AddGenesisAccount(f.KeyAddress(keyFoo), startCoins) | |||
f.AddGenesisAccount( |
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.
The integration test we should have had. Ty
add-genesis-account
add-genesis-account
Great add here @alexanderbez |
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.
LGTM once tests are passing 👍
Still failing tests here :/ |
CI failed due to an unrelated/non-deterministic test: #3559 |
closes: #3484
Targeted PR against correct branch (see CONTRIBUTING.md)
Linked to github-issue with discussion and accepted design OR link to spec that describes this work.
Wrote tests
Updated relevant documentation (
docs/
)Added entries in
PENDING.md
with issue #rereviewed
Files changed
in the github PR explorerFor Admin Use: