Skip to content

Commit

Permalink
NodeKernel: expose getBlockchainTime
Browse files Browse the repository at this point in the history
  • Loading branch information
mgmeier committed Jan 24, 2025
1 parent 388194c commit 94c2d97
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ data NodeKernel m addrNTN addrNTC blk = NodeKernel {
:: StrictTVar m OutboundConnectionsState
, getDiffusionPipeliningSupport
:: DiffusionPipeliningSupport
, getBlockchainTime :: BlockchainTime m
}

-- | Arguments required when initializing a node
Expand Down Expand Up @@ -208,6 +209,7 @@ initNodeKernel ::
initNodeKernel args@NodeKernelArgs { registry, cfg, tracers
, chainDB, initChainDB
, blockFetchConfiguration
, btime
, gsmArgs
, peerSharingRng
, publicPeerSelectionStateVar
Expand Down Expand Up @@ -333,6 +335,7 @@ initNodeKernel args@NodeKernelArgs { registry, cfg, tracers
, getOutboundConnectionsState
= varOutboundConnectionsState
, getDiffusionPipeliningSupport
, getBlockchainTime = btime
}
where
blockForgingController :: InternalState m remotePeer localPeer blk
Expand Down

0 comments on commit 94c2d97

Please sign in to comment.