Skip to content

Commit

Permalink
Remove cdbFutureBlocks
Browse files Browse the repository at this point in the history
After #525, the `cdbFutureBlocks` field became unnecessary, as we now delay headers until they are no longer from the (near) future.
  • Loading branch information
dnadales committed Sep 27, 2024
1 parent 3b1b756 commit 477aa3f
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 250 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,6 @@ openDBInternal args launchBgTasks = runWithTempRegistry $ do
traceWith tracer $ TraceOpenEvent OpenedLgrDB

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

let initChainSelTracer = contramap TraceInitChainSelEvent tracer

Expand All @@ -157,8 +156,6 @@ openDBInternal args launchBgTasks = runWithTempRegistry $ do
initChainSelTracer
(Args.cdbsTopLevelConfig cdbSpecificArgs)
varInvalid
varFutureBlocks
(Args.cdbsCheckInFuture cdbSpecificArgs)
(void initialLoE)
traceWith initChainSelTracer InitialChainSelected

Expand Down Expand Up @@ -197,9 +194,7 @@ openDBInternal args launchBgTasks = runWithTempRegistry $ do
, cdbGcDelay = Args.cdbsGcDelay cdbSpecificArgs
, cdbGcInterval = Args.cdbsGcInterval cdbSpecificArgs
, cdbKillBgThreads = varKillBgThreads
, cdbCheckInFuture = Args.cdbsCheckInFuture cdbSpecificArgs
, cdbChainSelQueue = chainSelQueue
, cdbFutureBlocks = varFutureBlocks
, cdbLoE = Args.cdbsLoE cdbSpecificArgs
}
h <- fmap CDBHandle $ newTVarIO $ ChainDbOpen env
Expand Down
Loading

0 comments on commit 477aa3f

Please sign in to comment.