From 44bc550916cea2c43b9eccb949e2fb5e6ddc93df Mon Sep 17 00:00:00 2001 From: Rongjian Lan Date: Wed, 4 Dec 2019 15:17:30 -0800 Subject: [PATCH] Make validator default to be active --- staking/types/validator.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/staking/types/validator.go b/staking/types/validator.go index 13ae90de0..86984763f 100644 --- a/staking/types/validator.go +++ b/staking/types/validator.go @@ -299,7 +299,7 @@ func CreateValidatorFromNewMsg(val *CreateValidator, blockNum *big.Int) (*Valida // TODO: a new validator should have a minimum of 1 token as self delegation, and that should be added as a delegation entry here. v := Validator{ val.ValidatorAddress, pubKeys, - new(big.Int), val.MinSelfDelegation, val.MaxTotalDelegation, false, + new(big.Int), val.MinSelfDelegation, val.MaxTotalDelegation, true, commission, desc, blockNum, } return &v, nil