Skip to content

Commit

Permalink
fix comment about recalculateSlashingMissedBlocksCounter func
Browse files Browse the repository at this point in the history
  • Loading branch information
pr0n00gler committed Jan 26, 2024
1 parent 71ec838 commit 85db8ca
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/upgrades/nextupgrade/upgrades.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ func CreateUpgradeHandler(
// Sometime long ago we decreased SlashWindow to 36k on pion-1 testnet (the param is untouched on neutron-1 mainnet),
// from that time MissedBlockCounter is wrong
// We need to set to a proper value.
// Proper value is: MissedBlocksCounter = sum_of_missed_blocks_in_bitmap(bitmap)
// Proper value is: MissedBlocksCounter = sum_of_missed_blocks_in_bitmap(bitmap).
// Since the param is untouched on neutron-1 mainnet, this method does not change anything during the migration on mainnet.
func recalculateSlashingMissedBlocksCounter(ctx sdk.Context, keepers *upgrades.UpgradeKeepers) {
ctx.Logger().Info("Starting recalculating MissedBlocksCounter for validators...")
signingInfos := make([]slashingtypes.ValidatorSigningInfo, 0)
Expand Down

0 comments on commit 85db8ca

Please sign in to comment.