Merge pull request #9 from Kava-Labs/change-unbonding-time

Change unbonding time
This commit is contained in:
Ruaridh 2018-09-20 11:51:11 -04:00 committed by GitHub
commit 1f9fd16dfa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7,6 +7,7 @@ import (
"encoding/json"
"errors"
"fmt"
"time"
"github.com/cosmos/cosmos-sdk/client"
"github.com/spf13/pflag"
@ -177,6 +178,8 @@ func KavaAppGenState(cdc *wire.Codec, appGenTxs []json.RawMessage) (genesisState
stakeData := stake.DefaultGenesisState()
// change denom of staking coin
stakeData.Params.BondDenom = "KVA"
// drastically shorten unbonding time for test purposes
stakeData.Params.UnbondingTime = time.Second * 60 * 5 // 5 minutes
// get genesis flag account information
genaccs := make([]GenesisAccount, len(appGenTxs))