mirror of
https://github.com/0glabs/0g-chain.git
synced 2024-12-26 16:25:21 +00:00
Merge pull request #9 from Kava-Labs/change-unbonding-time
Change unbonding time
This commit is contained in:
commit
1f9fd16dfa
@ -7,6 +7,7 @@ import (
|
|||||||
"encoding/json"
|
"encoding/json"
|
||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"time"
|
||||||
|
|
||||||
"github.com/cosmos/cosmos-sdk/client"
|
"github.com/cosmos/cosmos-sdk/client"
|
||||||
"github.com/spf13/pflag"
|
"github.com/spf13/pflag"
|
||||||
@ -177,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))
|
||||||
|
Loading…
Reference in New Issue
Block a user