Merge pull request #1956 from rlan35/staking_final_final

Make validator default to be active
pull/1957/head
Rongjian Lan 5 years ago committed by GitHub
commit fc7fb89269
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      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

Loading…
Cancel
Save