Skip to content

Commit

Permalink
cosmetics
Browse files Browse the repository at this point in the history
  • Loading branch information
drsk committed Oct 23, 2024
1 parent 1dec4a0 commit 00b08f6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions concordium-consensus/src/Concordium/GlobalState/BlockState.hs
Original file line number Diff line number Diff line change
Expand Up @@ -1509,10 +1509,10 @@ class (BlockStateQuery m) => BlockStateOperations m where
-- | Get whether a protocol update is effective
bsoIsProtocolUpdateEffective :: UpdatableBlockState m -> m Bool

-- | Update the count of missed rounds for a given validator
-- | Update the count of missed rounds for given validators
bsoUpdateMissedRounds :: (PVSupportsDelegation (MPV m)) => UpdatableBlockState m -> [(BakerId, Word16)] -> m (UpdatableBlockState m)

-- | Clear the missed round count for a given validator
-- | Clear the missed round count for given validators
bsoClearMissedRounds :: (PVSupportsDelegation (MPV m)) => UpdatableBlockState m -> [BakerId] -> m (UpdatableBlockState m)

-- | A snapshot of the block state that can be used to roll back to a previous state.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3484,10 +3484,11 @@ doClearMissedRounds pbs bids = do
bsp <- loadPBS pbs
bsp' <-
foldM
( \bsp0 bId -> modifyBakerPoolRewardDetailsInPoolRewards
bsp0
bId
(\bprd -> bprd{missedRounds = 0})
( \bsp0 bId ->
modifyBakerPoolRewardDetailsInPoolRewards
bsp0
bId
(\bprd -> bprd{missedRounds = 0})
)
bsp
bids
Expand Down

0 comments on commit 00b08f6

Please sign in to comment.