From 50f15bd5e3f47a4766a98655bce154b6fe773a1c Mon Sep 17 00:00:00 2001 From: anilCSE Date: Tue, 4 Feb 2020 23:39:05 +0530 Subject: [PATCH] Add votingperiod param change --- app/app.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/app.go b/app/app.go index 0ba0d2b87d..34c36d25ec 100644 --- a/app/app.go +++ b/app/app.go @@ -221,10 +221,13 @@ func NewXrnApp(logger log.Logger, db dbm.DB, traceStore io.Writer, loadLatest bo delegation := stakingTypes.Delegation{ DelegatorAddress: addr, ValidatorAddress: valAddr, - Shares: sdk.NewDec(100000000), + Shares: sdk.NewDec(100000000), } app.stakingKeeper.SetDelegation(ctx, delegation) + + votingParams := gov.NewVotingParams(21600000000000) + govSubspace.Set(ctx, gov.ParamStoreKeyVotingParams, &votingParams) }) // register the proposal types