File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -359,7 +359,7 @@ class ELUpdater(
359359 chainContractOptions : ChainContractOptions
360360 ): Unit = {
361361 def waitForRefApprovalOnCl : Option [FiniteDuration ] = {
362- val timestampAheadTime = (timestamp - time.correctedTime() / 1000 ).max(0 )
362+ val timestampAheadTime = (timestamp * 1000 - time.correctedTime()).max(0 )
363363 if (timestampAheadTime > 0 ) {
364364 Some (timestampAheadTime.seconds)
365365 } else if (! chainContractClient.blockExists(referenceHash)) {
@@ -476,7 +476,7 @@ class ELUpdater(
476476 }
477477
478478 // TODO: See a comment about prepareAndApplyPayload call above
479- scheduler.scheduleOnceLabeled(" forgeSecond" , (nextBlockUnixTs - time.correctedTime() / 1000 ).min(1 ).seconds )(
479+ scheduler.scheduleOnceLabeled(" forgeSecond" , (nextBlockUnixTs * 1000 - time.correctedTime()).min(200 ).millis )(
480480 tryToForgeNextBlock(
481481 payloadOrId = nextMiningData.payload,
482482 referenceHash = ecBlock.hash,
You can’t perform that action at this time.
0 commit comments