further reduce stack size

This commit is contained in:
Etan Kissling 2024-06-23 12:29:09 +02:00
parent 3f83028cf2
commit c01fb9f0da
No known key found for this signature in database
GPG Key ID: B21DA824C5A3D03D
1 changed files with 4 additions and 3 deletions

View File

@ -270,9 +270,10 @@ proc processObject(
of VerifierError.Duplicate:
if wallTime >= self.lastDuplicateTick + duplicateRateLimit:
if self.numDupsSinceProgress < minForceUpdateDuplicates:
let best = forkyStore.best_valid_update.get
if (proc(): bool = # Reduce stack size
let upgradedObj = obj.migratingToDataFork(lcDataFork)
if upgradedObj.forky(lcDataFork).matches(
forkyStore.best_valid_update.get):
upgradedObj.forky(lcDataFork).matches(best))():
self.lastDuplicateTick = wallTime
inc self.numDupsSinceProgress
if self.numDupsSinceProgress >= minForceUpdateDuplicates and