Skip to content

Commit

Permalink
Patch 'StartLeadershipCheck' tracers for GHC >= 9.4.*
Browse files Browse the repository at this point in the history
  • Loading branch information
KtorZ committed Jul 23, 2024
1 parent 2820a63 commit 844509e
Showing 1 changed file with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,7 @@ data TraceStartLeadershipCheckPlus =
forgeTracerTransform ::
( IsLedger (LedgerState blk)
, LedgerQueries blk
#if __GLASGOW_HASKELL__ >= 906
, AF.HasHeader blk
#endif
, AF.HasHeader blk
, AF.HasHeader (Header blk))
=> NodeKernelData blk
-> Trace IO (ForgeTracerType blk)
Expand Down Expand Up @@ -92,11 +90,7 @@ nkQueryLedger f NodeKernel{getChainDB} =
f <$> atomically (ChainDB.getCurrentLedger getChainDB)

fragmentChainDensity ::
#if __GLASGOW_HASKELL__ >= 906
(AF.HasHeader blk, AF.HasHeader (Header blk))
#else
AF.HasHeader (Header blk)
#endif
=> AF.AnchoredFragment (Header blk) -> Rational
fragmentChainDensity frag = calcDensity blockD slotD
where
Expand Down

0 comments on commit 844509e

Please sign in to comment.