From 278a7f740733958d68d67106f484faa857c88529 Mon Sep 17 00:00:00 2001 From: Daniel Date: Tue, 25 Oct 2022 19:18:38 +0100 Subject: [PATCH] pre refactor inner --- x/ccv/provider/keeper/keymap.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x/ccv/provider/keeper/keymap.go b/x/ccv/provider/keeper/keymap.go index 3ba2da2b58..5d49ab8fa9 100644 --- a/x/ccv/provider/keeper/keymap.go +++ b/x/ccv/provider/keeper/keymap.go @@ -186,7 +186,6 @@ func (e *KeyMap) inner(vscid VSCID, providerUpdates map[ProviderPubKey]int64) ma providerKeysToSendUpdateFor := []ProviderPubKey{} keyInProviderKeysToSendUpdateFor := map[string]bool{} - providerKeysLastPositivePowerUpdate := map[string]ccvtypes.LastUpdateMemo{} // Grab provider keys where the last update had positive power // and where the assigned consumer key has changed @@ -211,6 +210,7 @@ func (e *KeyMap) inner(vscid VSCID, providerUpdates map[ProviderPubKey]int64) ma } } + providerKeysLastPositivePowerUpdate := map[string]ccvtypes.LastUpdateMemo{} canonicalKey := map[string]ConsumerPubKey{} ret := map[ConsumerPubKey]int64{}