Skip to content

Commit

Permalink
change istimestamped to true
Browse files Browse the repository at this point in the history
  • Loading branch information
gitferry committed Aug 23, 2024
1 parent 439bb01 commit 46539e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions x/btcstaking/keeper/power_dist_change.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ func (k Keeper) ProcessAllPowerDistUpdateEvents(
events []*types.EventPowerDistUpdate,
maxActiveFps uint32,
) *types.VotingPowerDistCache {
height := uint64(sdk.UnwrapSDKContext(ctx).HeaderInfo().Height)
// height := uint64(sdk.UnwrapSDKContext(ctx).HeaderInfo().Height)
// a map where key is finality provider's BTC PK hex and value is a list
// of BTC delegations that newly become active under this provider
activeBTCDels := map[string][]*types.BTCDelegation{}
Expand Down Expand Up @@ -241,7 +241,7 @@ func (k Keeper) ProcessAllPowerDistUpdateEvents(
// TODO calling HasTimestampedPubRand potentially iterates
// all the pub rand committed by the fp, which might slow down
// the process, need optimization
fp.IsTimestamped = k.FinalityKeeper.HasTimestampedPubRand(ctx, fp.BtcPk, height)
fp.IsTimestamped = true
}

// filter out the top N finality providers and their total voting power, and
Expand Down

0 comments on commit 46539e9

Please sign in to comment.