Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
128 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ceDispatcher/ChainDBTracer/Combinators.hs → ...no/TraceDispatcher/ChainDB/Combinators.hs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...Dispatcher/ConsensusTracer/Combinators.hs → .../TraceDispatcher/Consensus/Combinators.hs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
cardano-node/src/Cardano/TraceDispatcher/Network/Combinators.hs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
|
||
module Cardano.TraceDispatcher.Network.Combinators | ||
( | ||
severityTChainSync | ||
, namesTChainSync | ||
|
||
) where | ||
|
||
|
||
import Cardano.Logging | ||
import Cardano.Prelude | ||
|
||
import Ouroboros.Network.Block (Serialised, Tip, Point) | ||
import qualified Ouroboros.Network.BlockFetch.ClientState as BlockFetch | ||
import Ouroboros.Network.Driver.Simple (TraceSendRecv (..)) | ||
import Ouroboros.Network.Protocol.ChainSync.Type (ChainSync) | ||
|
||
severityTChainSync :: BlockFetch.TraceLabelPeer peer (TraceSendRecv | ||
(ChainSync (Serialised blk) (Point blk) (Tip blk))) -> SeverityS | ||
severityTChainSync _ = undefined | ||
|
||
|
||
namesTChainSync :: BlockFetch.TraceLabelPeer peer (TraceSendRecv | ||
(ChainSync (Serialised blk) (Point blk) (Tip blk))) -> [Text] | ||
namesTChainSync _ = undefined |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{-# LANGUAGE AllowAmbiguousTypes #-} | ||
{-# LANGUAGE FlexibleContexts #-} | ||
{-# LANGUAGE ScopedTypeVariables #-} | ||
|
||
|
||
{-# OPTIONS_GHC -Wno-deprecations #-} | ||
|
||
module Cardano.TraceDispatcher.Network.Docu | ||
( docTChainSync | ||
) where | ||
|
||
import Cardano.Logging | ||
import Cardano.Prelude | ||
|
||
import Ouroboros.Network.Block (Serialised, Tip, Point) | ||
import qualified Ouroboros.Network.BlockFetch.ClientState as BlockFetch | ||
import Ouroboros.Network.Driver.Simple (TraceSendRecv (..)) | ||
import Ouroboros.Network.Protocol.ChainSync.Type (ChainSync) | ||
|
||
docTChainSync :: Documented (BlockFetch.TraceLabelPeer peer (TraceSendRecv | ||
(ChainSync (Serialised blk) (Point blk) (Tip blk)))) | ||
docTChainSync = Documented [ | ||
] |
29 changes: 29 additions & 0 deletions
29
cardano-node/src/Cardano/TraceDispatcher/Network/Formatting.hs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{-# LANGUAGE FlexibleContexts #-} | ||
{-# LANGUAGE FlexibleInstances #-} | ||
{-# LANGUAGE NamedFieldPuns #-} | ||
{-# LANGUAGE ScopedTypeVariables #-} | ||
{-# LANGUAGE TypeApplications #-} | ||
{-# LANGUAGE TypeFamilies #-} | ||
{-# LANGUAGE UndecidableInstances #-} | ||
|
||
{-# OPTIONS_GHC -Wno-orphans #-} | ||
|
||
module Cardano.TraceDispatcher.Network.Formatting | ||
( | ||
) where | ||
|
||
import Data.Aeson (ToJSON, Value (String), toJSON, (.=)) | ||
import qualified Data.Text as Text | ||
import Text.Show | ||
|
||
import Cardano.Logging | ||
import Cardano.Prelude hiding (Show, show) | ||
|
||
import Ouroboros.Network.Block (Serialised, Tip, Point) | ||
import qualified Ouroboros.Network.BlockFetch.ClientState as BlockFetch | ||
import Ouroboros.Network.Driver.Simple (TraceSendRecv (..)) | ||
import Ouroboros.Network.Protocol.ChainSync.Type (ChainSync) | ||
|
||
instance LogFormatting (TraceSendRecv | ||
(ChainSync (Serialised blk) (Point blk) (Tip blk))) where | ||
forMachine _ _ = mempty |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters