decrease to 5 minutes

This commit is contained in:
rhuairahrighairigh 2018-09-19 21:13:28 -04:00
parent eb927b1fb7
commit c5fc0574e6

View File

@ -7,6 +7,7 @@ import (
"encoding/json" "encoding/json"
"errors" "errors"
"fmt" "fmt"
"time"
"github.com/kava-labs/cosmos-sdk/client" "github.com/kava-labs/cosmos-sdk/client"
"github.com/spf13/pflag" "github.com/spf13/pflag"
@ -22,6 +23,7 @@ import (
) )
const defaultPassword = "password" const defaultPassword = "password"
var ( var (
// Tokens given to genesis validators and accounts // Tokens given to genesis validators and accounts
numStartingTokensValidators = int64(1000) numStartingTokensValidators = int64(1000)
@ -176,6 +178,8 @@ func KavaAppGenState(cdc *wire.Codec, appGenTxs []json.RawMessage) (genesisState
stakeData := stake.DefaultGenesisState() stakeData := stake.DefaultGenesisState()
// change denom of staking coin // change denom of staking coin
stakeData.Params.BondDenom = "KVA" 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 // get genesis flag account information
genaccs := make([]GenesisAccount, len(appGenTxs)) genaccs := make([]GenesisAccount, len(appGenTxs))