more detailed comments

This commit is contained in:
rigelrozanski
2018-07-10 00:18:25 -04:00
parent b60fcb68d6
commit a31404c628
+2 -2
View File
@@ -21,10 +21,10 @@ func InitGenesis(ctx sdk.Context, keeper Keeper, data types.GenesisState) error
keeper.SetValidator(ctx, validator)
if validator.PoolShares.Amount.IsZero() {
return errors.Errorf("genesis validator cannot have zero power, validator: %v", validator)
return errors.Errorf("genesis validator cannot have zero pool shares, validator: %v", validator)
}
if validator.DelegatorShares.IsZero() {
return errors.Errorf("genesis validator cannot have zero power, validator: %v", validator)
return errors.Errorf("genesis validator cannot have zero delegator shares, validator: %v", validator)
}
// Manually set indexes for the first time