[staking] Undo bad merge from master

pull/1850/head
Edgar Aroutiounian 5 years ago
parent 043a6e67fe
commit a1f637f990
  1. 3
      staking/types/validator.go

@ -236,10 +236,11 @@ func CreateValidatorFromNewMsg(val *CreateValidator, blockNum *big.Int) (*Valida
commission := Commission{val.CommissionRates, blockNum}
pubKeys := []shard.BlsPublicKey{}
pubKeys = append(pubKeys, val.SlotPubKeys...)
// 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,
val.Amount, new(big.Int), val.MinSelfDelegation, val.MaxTotalDelegation, false,
commission, desc, big.NewInt(0),
commission, desc, blockNum,
}
return &v, nil
}

Loading…
Cancel
Save