@@ -19,7 +19,7 @@ import Cardano.Logging
1919import Cardano.Slotting.Slot (EpochSize (.. ))
2020import Cardano.Tracing.OrphanInstances.HardFork ()
2121import Ouroboros.Consensus.Block (BlockProtocol , CannotForge , ForgeStateInfo ,
22- ForgeStateUpdateError )
22+ ForgeStateUpdateError , PerasWeight ( .. ) )
2323import Ouroboros.Consensus.BlockchainTime (getSlotLength )
2424import Ouroboros.Consensus.Cardano.Condense ()
2525import Ouroboros.Consensus.HardFork.Combinator
@@ -36,7 +36,8 @@ import Ouroboros.Consensus.HeaderValidation (OtherHeaderEnvelopeError)
3636import Ouroboros.Consensus.Ledger.Abstract (LedgerError )
3737import Ouroboros.Consensus.Ledger.Inspect (LedgerUpdate , LedgerWarning )
3838import Ouroboros.Consensus.Ledger.SupportsMempool (ApplyTxErr )
39- import Ouroboros.Consensus.Protocol.Abstract (ValidationErr , TiebreakerView , SelectView (.. ))
39+ import Ouroboros.Consensus.Peras.SelectView
40+ import Ouroboros.Consensus.Protocol.Abstract (TiebreakerView , ValidationErr )
4041import Ouroboros.Consensus.TypeFamilyWrappers
4142import Ouroboros.Consensus.Util.Condense (Condense (.. ))
4243
@@ -352,10 +353,11 @@ instance LogFormatting (ForgeStateUpdateError blk) => LogFormatting (WrapForgeSt
352353instance All (LogFormatting `Compose ` WrapTiebreakerView ) xs => LogFormatting (HardForkTiebreakerView xs ) where
353354 forMachine dtal = forMachine dtal . getHardForkTiebreakerView
354355
355- instance LogFormatting (TiebreakerView protocol ) => LogFormatting (SelectView protocol ) where
356+ instance LogFormatting (TiebreakerView protocol ) => LogFormatting (WeightedSelectView protocol ) where
356357 forMachine dtal sv = mconcat
357- [ " blockNo" .= svBlockNo sv
358- , forMachine dtal (svTiebreakerView sv)
358+ [ " blockNo" .= wsvBlockNo sv
359+ , " weightBoost" .= unPerasWeight (wsvWeightBoost sv)
360+ , forMachine dtal (wsvTiebreaker sv)
359361 ]
360362
361363instance All (LogFormatting `Compose ` WrapTiebreakerView ) xs => LogFormatting (OneEraTiebreakerView xs ) where
0 commit comments