This commit is contained in:
Alexander Bezobchuk 2019-07-02 07:01:40 -04:00 committed by Alessio Treglia
parent f1b08b85f2
commit b3a8195e31
2 changed files with 2 additions and 1 deletions

View File

@ -149,7 +149,7 @@ func TestDecodeDistributionStore(t *testing.T) {
cmn.KVPair{Key: distr.GetValidatorHistoricalRewardsKey(valAddr1, 100), Value: cdc.MustMarshalBinaryLengthPrefixed(historicalRewards)},
cmn.KVPair{Key: distr.GetValidatorCurrentRewardsKey(valAddr1), Value: cdc.MustMarshalBinaryLengthPrefixed(currentRewards)},
cmn.KVPair{Key: distr.GetValidatorAccumulatedCommissionKey(valAddr1), Value: cdc.MustMarshalBinaryLengthPrefixed(commission)},
cmn.KVPair{Key: distr.GetValidatorSlashEventKey(valAddr1, 13), Value: cdc.MustMarshalBinaryLengthPrefixed(slashEvent)},
cmn.KVPair{Key: distr.GetValidatorSlashEventKeyPrefix(valAddr1, 13), Value: cdc.MustMarshalBinaryLengthPrefixed(slashEvent)},
cmn.KVPair{Key: []byte{0x99}, Value: []byte{0x99}},
}

View File

@ -64,6 +64,7 @@ var (
GetValidatorAccumulatedCommissionKey = keeper.GetValidatorAccumulatedCommissionKey
GetValidatorSlashEventPrefix = keeper.GetValidatorSlashEventPrefix
GetValidatorSlashEventKey = keeper.GetValidatorSlashEventKey
GetValidatorSlashEventKeyPrefix = keeper.GetValidatorSlashEventKeyPrefix
ParamKeyTable = keeper.ParamKeyTable
HandleCommunityPoolSpendProposal = keeper.HandleCommunityPoolSpendProposal
NewQuerier = keeper.NewQuerier