Skip to content

Commit 2a2e41a

Browse files
committed
Remove cdbFutureBlocks
After #525, the `cdbFutureBlocks` field became unnecessary, as we now delay headers until they are no longer from the (near) future.
1 parent 15b10bf commit 2a2e41a

File tree

3 files changed

+58
-250
lines changed

3 files changed

+58
-250
lines changed

ouroboros-consensus/src/ouroboros-consensus/Ouroboros/Consensus/Storage/ChainDB/Impl.hs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,6 @@ openDBInternal args launchBgTasks = runWithTempRegistry $ do
144144
traceWith tracer $ TraceOpenEvent OpenedLgrDB
145145

146146
varInvalid <- newTVarIO (WithFingerprint Map.empty (Fingerprint 0))
147-
varFutureBlocks <- newTVarIO Map.empty
148147

149148
let initChainSelTracer = contramap TraceInitChainSelEvent tracer
150149

@@ -157,8 +156,6 @@ openDBInternal args launchBgTasks = runWithTempRegistry $ do
157156
initChainSelTracer
158157
(Args.cdbsTopLevelConfig cdbSpecificArgs)
159158
varInvalid
160-
varFutureBlocks
161-
(Args.cdbsCheckInFuture cdbSpecificArgs)
162159
(void initialLoE)
163160
traceWith initChainSelTracer InitialChainSelected
164161

@@ -197,9 +194,7 @@ openDBInternal args launchBgTasks = runWithTempRegistry $ do
197194
, cdbGcDelay = Args.cdbsGcDelay cdbSpecificArgs
198195
, cdbGcInterval = Args.cdbsGcInterval cdbSpecificArgs
199196
, cdbKillBgThreads = varKillBgThreads
200-
, cdbCheckInFuture = Args.cdbsCheckInFuture cdbSpecificArgs
201197
, cdbChainSelQueue = chainSelQueue
202-
, cdbFutureBlocks = varFutureBlocks
203198
, cdbLoE = Args.cdbsLoE cdbSpecificArgs
204199
}
205200
h <- fmap CDBHandle $ newTVarIO $ ChainDbOpen env

0 commit comments

Comments
 (0)