-
Notifications
You must be signed in to change notification settings - Fork 718
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
3 changed files
with
55 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
module Cardano.Node.StateRep where | ||
|
||
data NodeState blk | ||
-- All node states prior to tracing system going online are effectively invisible. | ||
= NodeTracingOnlineConfiguring -- <- initTraceDispatcher | ||
| NodeConfigCompleteLoadingKernel -- just before Node.run | ||
| NodeChainDBOpening (TraceEvent blk) | ||
-- TraceOpenEvent (TraceOpenEvent blk) | ||
-- StartedOpeningDB | ||
-- StartedOpeningImmutableDB | ||
-- OpenedImmutableDB | ||
-- StartedOpeningVolatileDB | ||
-- OpenedVolatileDB | ||
-- StartedOpeningLgrDB | ||
-- TraceLedgerReplayEvent (LedgerReplayEvent blk) | ||
-- ReplayFromGenesis | ||
-- ReplayFromSnapshot | ||
-- ReplayedBlock | ||
-- TraceOpenEvent (TraceOpenEvent blk) | ||
-- OpenedLgrDB | ||
-- TraceInitChainSelEvent (TraceInitChainSelEvent blk) | ||
-- StartedInitChainSelection | ||
-- InitalChainSelected | ||
-- TraceOpenEvent (TraceOpenEvent blk) | ||
-- OpenedDB | ||
| NodeKernelOnlineSyncing -- just before onKernel in rnNodeKernelHook | ||
| NodeSyncing (TraceEvent blk) | ||
-- TraceAddBlockEvent (TraceAddBlockEvent blk) | ||
-- ChainDB.AddedToCurrentChain | ||
| NodeShutdownComplete -- <- finally in handleNodeWithTracers |
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,24 @@ | ||
#+TITLE: Node state datapoints | ||
|
||
* Node | ||
|
||
Cardano.Node.StateRep | ||
|
||
* Consensus | ||
https://github.com/input-output-hk/ouroboros-network/blob/master/ouroboros-consensus/docs/initialization-steps-and-the-related-tracer.org | ||
|
||
Consensus init: | ||
+ open the Chain DB | ||
+ open ImmutableDb | ||
+ open VolatileDB | ||
+ open LedgerDB | ||
+ setup the NodeKernel | ||
+ initialize the network layer | ||
|
||
- Ouroboros.Consensus.Node.run | ||
- Ouroboros.Consensus.Node.runWith | ||
|
||
- TraceValidationEvent blk | ||
- UpdateLedgerDbTraceEvent | ||
- UpdateLedgerDbTraceEvent blk | ||
- StartedPushingBlockToTheLedgerDb |