Skip to content

Commit

Permalink
Merge pull request #14 from zhiqiang-bianjie/develop
Browse files Browse the repository at this point in the history
update genesis
  • Loading branch information
zhangyelong authored Jun 20, 2018
2 parents e2b1e3c + 7278298 commit 15db17a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions app/genesis.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ func IrisAppGenState(cdc *wire.Codec, appGenTxs []json.RawMessage) (genesisState

// start with the default staking genesis state
//stakeData := stake.DefaultGenesisState()
stakeData := createGenesisState()
stakeData := stake.DefaultGenesisState()

// get genesis flag account information
genaccs := make([]GenesisAccount, len(appGenTxs))
Expand All @@ -165,10 +165,11 @@ func IrisAppGenState(cdc *wire.Codec, appGenTxs []json.RawMessage) (genesisState
accAuth := auth.NewBaseAccountWithAddress(genTx.Address)
accAuth.Coins = sdk.Coins{
{denom, totalTokenAmt},
{"steak", freeFermionVal},
}
acc := NewGenesisAccount(&accAuth)
genaccs[i] = acc
stakeData.Pool.LooseUnbondedTokens += totalTokenAmt // increase the supply
stakeData.Pool.LooseUnbondedTokens += freeFermionVal // increase the supply

// add the validator
if len(genTx.Name) > 0 {
Expand Down Expand Up @@ -225,7 +226,7 @@ func createGenesisState() stake.GenesisState{
InflationMin: sdk.NewRat(7, 100),
GoalBonded: sdk.NewRat(67, 100),
MaxValidators: 100,
BondDenom: denom,
BondDenom: "steak",
},
}
}

0 comments on commit 15db17a

Please sign in to comment.