From c5fc0574e6fd2afadf4138f8a8af17cca9a46c31 Mon Sep 17 00:00:00 2001 From: rhuairahrighairigh Date: Wed, 19 Sep 2018 21:13:28 -0400 Subject: [PATCH] decrease to 5 minutes --- internal/app/genesis.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/internal/app/genesis.go b/internal/app/genesis.go index df132c3a..fa88f96d 100644 --- a/internal/app/genesis.go +++ b/internal/app/genesis.go @@ -7,6 +7,7 @@ import ( "encoding/json" "errors" "fmt" + "time" "github.com/kava-labs/cosmos-sdk/client" "github.com/spf13/pflag" @@ -22,6 +23,7 @@ import ( ) const defaultPassword = "password" + var ( // Tokens given to genesis validators and accounts numStartingTokensValidators = int64(1000) @@ -176,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))