store.Delete instead of store.Set to nil

This commit is contained in:
Christopher Goes 2018-05-31 00:13:13 +02:00
parent 40526d3e77
commit 4e266013a8
No known key found for this signature in database
GPG Key ID: E828D98232D328D3
1 changed files with 2 additions and 2 deletions

View File

@ -682,8 +682,8 @@ func (k Keeper) setCliffValidator(ctx sdk.Context, validator Validator, pool Poo
// clear the current validator and power of the validator on the cliff
func (k Keeper) clearCliffValidator(ctx sdk.Context) {
store := ctx.KVStore(k.storeKey)
store.Set(ValidatorPowerCliffKey, nil)
store.Set(ValidatorCliffKey, nil)
store.Delete(ValidatorPowerCliffKey)
store.Delete(ValidatorCliffKey)
}
//__________________________________________________________________________