Skip to content

Commit b64debb

Browse files
committed
LeiosNotify Tracing: include identifying information in MsgLeiosBlockAnnouncement TraceSendRecv object
1 parent 85b4c2f commit b64debb

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

cardano-node/src/Cardano/Node/Tracing/Tracers/NodeToNode.hs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ import Ouroboros.Consensus.Block (ConvertRawHash, GetHeader, Header, S
2424
import Ouroboros.Consensus.Ledger.SupportsMempool (GenTx, HasTxId, HasTxs,
2525
LedgerSupportsMempool, extractTxs, txId)
2626
import Ouroboros.Consensus.Node.Run (SerialiseNodeToNodeConstraints, estimateBlockSize)
27+
import Ouroboros.Consensus.Storage.LedgerDB.Forker (ResolveLeiosBlock,
28+
headerLeiosAnnouncement)
2729
import Ouroboros.Network.Block (Point, Serialised (..), blockHash)
2830
import Ouroboros.Network.DeltaQ (GSV (..), PeerGSV (..))
2931
import Ouroboros.Network.KeepAlive (TraceKeepAliveClient (..))
@@ -478,11 +480,12 @@ instance MetaTrace (TraceKeepAliveClient remotePeer) where
478480
--------------------------------------------------------------------------------
479481

480482
instance ( Show (Header blk)
483+
, ResolveLeiosBlock blk
481484
) => LogFormatting (AnyMessage (LN.LeiosNotify LeiosPoint (Header blk) LeiosVote)) where
482485
forHuman = showT
483486

484487
forMachine _dtal (AnyMessageAndAgency _stok msg) =
485-
messageLeiosNotifyToObject msg
488+
messageLeiosNotifyToObject headerLeiosAnnouncement msg
486489

487490
instance LogFormatting (AnyMessage (LF.LeiosFetch LeiosPoint LeiosEb LeiosTx)) where
488491
forHuman = showT

0 commit comments

Comments
 (0)