-
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: Replace GenTx with StdTx #2524
R4R: Replace GenTx with StdTx #2524
Conversation
FTBFS due to:
|
Codecov Report
@@ Coverage Diff @@
## develop #2524 +/- ##
===========================================
- Coverage 57.88% 57.84% -0.04%
===========================================
Files 140 141 +1
Lines 8119 8192 +73
===========================================
+ Hits 4700 4739 +39
- Misses 3122 3149 +27
- Partials 297 304 +7 |
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.
Thanks @alessio - see comments
|
||
// create the genesis account, give'm few steaks and a buncha token with there name | ||
genaccs[i] = genesisAccountFromGenTx(genTx) | ||
genaccs[i] = genesisAccountFromMsgCreateValidator(msg, freeFermionsAcc) |
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 guess this part is pretty Gaia-specific (as is needing to update the stake data).
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.
But also, this won't actually be in Gaia, since we'll have an account set unrelated to the validator transactions. This needs to move to a special testnet
command I think.
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 the approach that Gaia will use (separate account set) is likely to be common - and we might want to allow delegation transactions at genesis too.
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.
Maybe this can be split into a separate PR. Also cc @zmanian - what do we need, if anything, for GoS genesis setup?
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 guess we can use this for now and just strip the accounts generated here and use the fundraiser distribution instead, copy/paste job.
@alessio Looks like the linter & module simulations are failing? |
@cwgoes integration tests failed too - I'm on it |
Good to go @cwgoes |
} | ||
|
||
sort.Strings(addresses) | ||
persistentPeers = strings.Join(addresses, ",") |
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.
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'm happy to get rid of it
cmd/gaia/app/genesis.go
Outdated
if err != nil { | ||
return | ||
// skip stakeData validation as genesis is created from txs | ||
if len(genesisState.Txs) > 0 { |
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.
Pretty sure we want to validate regardless for consistency of the genesisState.* information. For example, this validates parameters as well. And in the future I think we'll want to support loading genesis w/ stake/slashing/etc data as well as genesis txs... such as when recovering from a halted chain, though more changes will be necessary then.
I've reintroduced |
Finalize gaiacli tx create-validator --genesis-format
…; OverwriteKeys -> OverwriteKey
6b56153
to
256919f
Compare
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.
Tested ACK - thanks @alessio
We could use a little more cleanup on CLI output, but that can happen later.
Ref #1890
docs/
)PENDING.md
with issue #Files changed
in the github PR explorerCC'ing @jaekwon
For Admin Use: