From d8038fcddc4ce474d92f2e1a66d9ed2eba162bfe Mon Sep 17 00:00:00 2001 From: Christopher Goes Date: Tue, 16 Oct 2018 21:44:23 +0200 Subject: [PATCH] Update testcases & pending --- PENDING.md | 1 + x/stake/keeper/key_test.go | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/PENDING.md b/PENDING.md index 376cd2daf..ca147ebb4 100644 --- a/PENDING.md +++ b/PENDING.md @@ -73,6 +73,7 @@ BREAKING CHANGES * [x/stake] \#2412 Added an unbonding validator queue to EndBlock to automatically update validator.Status when finished Unbonding * [x/stake] \#2500 Block conflicting redelegations until we add an index * [x/params] Global Paramstore refactored + * [x/stake] \#2508 Utilize Tendermint power for validator power key * Tendermint * Update tendermint version from v0.23.0 to v0.25.0, notable changes diff --git a/x/stake/keeper/key_test.go b/x/stake/keeper/key_test.go index 591e7d1bc..dfd6a44e7 100644 --- a/x/stake/keeper/key_test.go +++ b/x/stake/keeper/key_test.go @@ -35,10 +35,10 @@ func TestGetValidatorPowerRank(t *testing.T) { validator types.Validator wantHex string }{ - {val1, "05303030303030303030303030ffffffffffffffffffff"}, - {val2, "05303030303030303030303031ffffffffffffffffffff"}, - {val3, "05303030303030303030303130ffffffffffffffffffff"}, - {val4, "0531303939353131363237373736ffffffffffffffffffff"}, + {val1, "050000000000000000ffffffffffffffffffff"}, + {val2, "050000000000000001ffffffffffffffffffff"}, + {val3, "05000000000000000affffffffffffffffffff"}, + {val4, "050000010000000000ffffffffffffffffffff"}, } for i, tt := range tests { got := hex.EncodeToString(getValidatorPowerRank(tt.validator))