File tree Expand file tree Collapse file tree 6 files changed +53
-4
lines changed 
ouroboros-consensus-diffusion 
src/ouroboros-consensus-diffusion/Ouroboros/Consensus 
src/ouroboros-consensus/Ouroboros/Consensus Expand file tree Collapse file tree 6 files changed +53
-4
lines changed Original file line number Diff line number Diff line change 1+ <!-- 
2+ A new scriv changelog fragment. 
3+ 
4+ Uncomment the section that is right (remove the HTML comment wrapper). 
5+ For top level release notes, leave all the headers commented out. 
6+ --> 
7+ 
8+ ### Patch  
9+ 
10+ -  Ensure the ` ProtocolInfo `  is garbage collected once we start Consensus.
11+ 
12+ <!-- 
13+ ### Non-Breaking 
14+ 
15+ - A bullet item for the Non-Breaking category. 
16+ 
17+ --> 
18+ <!-- 
19+ ### Breaking 
20+ 
21+ - A bullet item for the Breaking category. 
22+ 
23+ --> 
Original file line number Diff line number Diff line change 1+ {-# LANGUAGE  BangPatterns #-}
12{-# LANGUAGE  ConstraintKinds #-}
23{-# LANGUAGE  DataKinds #-}
34{-# LANGUAGE  DuplicateRecordFields #-}
@@ -632,7 +633,7 @@ runWith RunNodeArgs{..} encAddrNtN decAddrNtN LowLevelRunNodeArgs{..} =
632633    } =  rnProtocolInfo
633634
634635  codecConfig  ::  CodecConfig  blk 
635-   codecConfig =  configCodec cfg
636+   ! codecConfig =  configCodec cfg
636637
637638  mkNodeToNodeApps  :: 
638639    NodeKernelArgs  m  addrNTN  (ConnectionId  addrNTC ) blk  -> 
Original file line number Diff line number Diff line change 1+ <!-- 
2+ A new scriv changelog fragment. 
3+ 
4+ Uncomment the section that is right (remove the HTML comment wrapper). 
5+ For top level release notes, leave all the headers commented out. 
6+ --> 
7+ 
8+ ### Patch  
9+ 
10+ -  Ensure the ` LedgerDbArgs `  are garbage collected once we start the LedgerDB.
11+ -  Ensure the ` ProtocolInfo `  is garbage collected once we start Consensus.
12+ 
13+ <!-- 
14+ ### Non-Breaking 
15+ 
16+ - A bullet item for the Non-Breaking category. 
17+ 
18+ --> 
19+ <!-- 
20+ ### Breaking 
21+ 
22+ - A bullet item for the Breaking category. 
23+ 
24+ --> 
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ enumCoreNodes (NumCoreNodes numNodes) =
3535
3636--  |  Data required to run the specified protocol. 
3737data  ProtocolInfo  b  =  ProtocolInfo 
38-   {  pInfoConfig  ::  TopLevelConfig  b 
38+   {  pInfoConfig  ::  ! ( TopLevelConfig  b ) 
3939  , pInfoInitLedger  ::  ExtLedgerState  b  ValuesMK 
4040  --  ^  At genesis, this LedgerState must contain the UTxOs for the initial 
4141  --  era (which for Cardano is Byron that has void tables).
Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ data LedgerDbArgs f m blk = LedgerDbArgs
5757  , lgrGenesis  ::  HKD  f  (m  (ExtLedgerState  blk  ValuesMK ))
5858  , lgrHasFS  ::  HKD  f  (SomeHasFS  m )
5959  , lgrConfig  ::  LedgerDbCfgF  f  (ExtLedgerState  blk )
60-   , lgrTracer  ::  Tracer  m  (TraceEvent  blk )
60+   , lgrTracer  ::  ! ( Tracer  m  (TraceEvent  blk ) )
6161  , lgrBackendArgs  ::  LedgerDbBackendArgs  m  blk 
6262  , lgrRegistry  ::  HKD  f  (ResourceRegistry  m )
6363  , lgrQueryBatchSize  ::  QueryBatchSize 
Original file line number Diff line number Diff line change @@ -149,7 +149,8 @@ mkInitDb args bss getBlock snapManager getVolatileSuffix =
149149        pure  $  implMkLedgerDb h snapManager
150150    }
151151 where 
152-   bsTracer =  LedgerDBFlavorImplEvent  .  FlavorImplSpecificTraceV1  >$<  lgrTracer
152+   ! bsTracer =  LedgerDBFlavorImplEvent  .  FlavorImplSpecificTraceV1  >$<  tr
153+   ! tr =  lgrTracer
153154
154155  LedgerDbArgs 
155156    { lgrHasFS
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments