Skip to content

Commit

Permalink
fix migratePoolRewardsP1
Browse files Browse the repository at this point in the history
This contained a recursive definition.
  • Loading branch information
drsk committed Nov 12, 2024
1 parent b2805a0 commit 9b87009
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ import Data.Word
import Concordium.Crypto.SHA256 as Hash

import Concordium.Types
import Concordium.Types.Conditionally
import Concordium.Types.HashableTo
import Concordium.Utils.BinarySearch
import Concordium.Utils.Serialization.Put (MonadPut (..))
Expand Down Expand Up @@ -146,10 +147,11 @@ migratePoolRewardsP1 curBakers nextBakers blockCounts npEpoch npMintRate = do
{ blockCount = Map.findWithDefault 0 bid blockCounts,
transactionFeesAccrued = 0,
finalizationAwake = False,
missedRounds = 0 <$ missedRounds bprd
missedRounds = conditionally hasValidatorSuspension 0
}
(!newRef, _) <- refFlush =<< refMake bprd
return newRef
hasValidatorSuspension = sSupportsValidatorSuspension (accountVersion @av)

-- | Look up the baker capital and reward details for a baker ID.
lookupBakerCapitalAndRewardDetails ::
Expand Down

0 comments on commit 9b87009

Please sign in to comment.