@@ -241,20 +241,23 @@ handleNodeWithTracers cmdPc nc p@(SomeConsensusProtocol blockType runP) = do
241
241
(getLast (pncConfigFile cmdPc))
242
242
case ncTraceConfig nc of
243
243
TraceDispatcher {} -> do
244
+ -- TODO fix
244
245
blockForging <- snd (Api. protocolInfo runP)
245
246
tracers <-
246
247
initTraceDispatcher
247
248
nc
248
249
p
249
250
networkMagic
250
251
nodeKernelData
252
+ -- TODO fix
251
253
(null blockForging)
252
254
253
255
startupInfo <- getStartupInfo nc p fp
254
256
mapM_ (traceWith $ startupTracer tracers) startupInfo
255
257
traceNodeStartupInfo (nodeStartupInfoTracer tracers) startupInfo
256
258
-- sends initial BlockForgingUpdate
257
259
let isNonProducing = ncStartAsNonProducingNode nc
260
+ -- TODO fix
258
261
traceWith (startupTracer tracers)
259
262
(BlockForgingUpdate (if isNonProducing || null blockForging
260
263
then DisabledBlockForging
@@ -298,6 +301,7 @@ handleNodeWithTracers cmdPc nc p@(SomeConsensusProtocol blockType runP) = do
298
301
299
302
traceWith (nodeVersionTracer tracers) getNodeVersion
300
303
let isNonProducing = ncStartAsNonProducingNode nc
304
+ -- TODO fix
301
305
blockForging <- snd (Api. protocolInfo runP)
302
306
traceWith (startupTracer tracers)
303
307
(BlockForgingUpdate (if isNonProducing || null blockForging
@@ -468,6 +472,7 @@ handleSimpleNode blockType runP tracers nc onKernel = do
468
472
, rnProtocolInfo = pInfo
469
473
, rnNodeKernelHook = \ registry nodeKernel -> do
470
474
-- set the initial block forging
475
+ -- TODO fix
471
476
blockForging <- snd (Api. protocolInfo runP)
472
477
473
478
unless (ncStartAsNonProducingNode nc) $
@@ -688,6 +693,7 @@ updateBlockForging startupTracer blockType nodeKernel nc = do
688
693
case Api. reflBlockType blockType blockType' of
689
694
Just Refl -> do
690
695
-- TODO: check if runP' has changed
696
+ -- TODO fix
691
697
blockForging <- snd (Api. protocolInfo runP')
692
698
traceWith startupTracer
693
699
(BlockForgingUpdate (if null blockForging
0 commit comments