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 f988fcc commit 71ec838
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 @@ -37,7 +37,8 @@ func CreateUpgradeHandler(
}
}

// Sometime long ago we decreased SlashWindow to 36k, from that time MissedBlockCounter is wrong
// 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)
func recalculateSlashingMissedBlocksCounter(ctx sdk.Context, keepers *upgrades.UpgradeKeepers) {
Expand Down

0 comments on commit 71ec838

Please sign in to comment.