@@ -141,7 +141,7 @@ import Ouroboros.Consensus.Util.Enclose (Enclosing, Enclosing' (..))
141141import Ouroboros.Consensus.Util.IOLike
142142import Ouroboros.Consensus.Util.Orphans ()
143143import Ouroboros.Consensus.Util.STM (WithFingerprint )
144- import Ouroboros.Network.AnchoredFragment (AnchoredFragment )
144+ import Ouroboros.Network.AnchoredFragment (Anchor , AnchoredFragment )
145145import qualified Ouroboros.Network.AnchoredFragment as AF
146146import Ouroboros.Network.Block (MaxSlotNo (.. ))
147147import Ouroboros.Network.BlockFetch.ConsensusInterface
@@ -620,7 +620,7 @@ addPerasCertToQueue tracer ChainSelQueue{varChainSelQueue} cert = do
620620 traceWith tracer $ addedToQueue $ FallingEdgeWith $ fromIntegral queueSize
621621 pure
622622 AddPerasCertPromise
623- { waitPerasCertProcessed = atomically $ takeTMVar varProcessed
623+ { waitPerasCertProcessed = atomically $ readTMVar varProcessed
624624 }
625625 where
626626 addedToQueue = AddedPerasCertToQueue (getPerasCertRound cert) (getPerasCertBoostedBlock cert)
@@ -1068,7 +1068,7 @@ data TraceAddPerasCertEvent blk
10681068 | -- | The Peras certificate from the given round boosting the given block was
10691069 -- too old, ie its slot was older than the current immutable slot (the third
10701070 -- argument).
1071- IgnorePerasCertTooOld PerasRoundNo (Point blk ) (Point blk )
1071+ IgnorePerasCertTooOld PerasRoundNo (Point blk ) (Anchor blk )
10721072 | -- | The Peras certificate from the given round boosts a block on the
10731073 -- current selection.
10741074 PerasCertBoostsCurrentChain PerasRoundNo (Point blk )
0 commit comments