Skip to content

Commit

Permalink
Fix proposal TODO
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel committed Nov 2, 2022
1 parent ed10448 commit 05da157
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions x/ccv/provider/keeper/proposal.go
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ func (k Keeper) MakeConsumerGenesis(ctx sdk.Context, chainID string) (gen consum
})
}

// TODO: deduplicate these blocks
// Assign consumer chain consensus keys for each validator by taking the provider chain key as default
for _, u := range providerUpdates {
if _, found := k.KeyAssignment(ctx, chainID).GetCurrentConsumerPubKeyFromProviderPubKey(u.PubKey); !found {
// The provider has not designated a key to use for the consumer chain. Use the provider key
Expand All @@ -257,8 +257,8 @@ func (k Keeper) MakeConsumerGenesis(ctx sdk.Context, chainID string) (gen consum
}
}

// Map the updates through any key transformations
// TODO: check vscid
// Store memos for the updates so that future validator power updates can be made consistent
// with any future changes to the key assignment.
consumerUpdates := k.KeyAssignment(ctx, chainID).ComputeUpdates(0, providerUpdates)

gen.InitialValSet = consumerUpdates
Expand Down

0 comments on commit 05da157

Please sign in to comment.