Skip to content

Commit 94c2d97

Browse files
committed
NodeKernel: expose getBlockchainTime
1 parent 388194c commit 94c2d97

File tree

1 file changed

+3
-0
lines changed
  • ouroboros-consensus-diffusion/src/ouroboros-consensus-diffusion/Ouroboros/Consensus

1 file changed

+3
-0
lines changed

ouroboros-consensus-diffusion/src/ouroboros-consensus-diffusion/Ouroboros/Consensus/NodeKernel.hs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,7 @@ data NodeKernel m addrNTN addrNTC blk = NodeKernel {
166166
:: StrictTVar m OutboundConnectionsState
167167
, getDiffusionPipeliningSupport
168168
:: DiffusionPipeliningSupport
169+
, getBlockchainTime :: BlockchainTime m
169170
}
170171

171172
-- | Arguments required when initializing a node
@@ -208,6 +209,7 @@ initNodeKernel ::
208209
initNodeKernel args@NodeKernelArgs { registry, cfg, tracers
209210
, chainDB, initChainDB
210211
, blockFetchConfiguration
212+
, btime
211213
, gsmArgs
212214
, peerSharingRng
213215
, publicPeerSelectionStateVar
@@ -333,6 +335,7 @@ initNodeKernel args@NodeKernelArgs { registry, cfg, tracers
333335
, getOutboundConnectionsState
334336
= varOutboundConnectionsState
335337
, getDiffusionPipeliningSupport
338+
, getBlockchainTime = btime
336339
}
337340
where
338341
blockForgingController :: InternalState m remotePeer localPeer blk

0 commit comments

Comments
 (0)