From 1634c0a8f632071b33cea72ca33a0a993bcb6c7c Mon Sep 17 00:00:00 2001 From: Jordan Hrycaj Date: Thu, 5 Dec 2024 16:31:09 +0000 Subject: [PATCH] Cosmetics --- nimbus/sync/beacon/worker/blocks_staged.nim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nimbus/sync/beacon/worker/blocks_staged.nim b/nimbus/sync/beacon/worker/blocks_staged.nim index b898d8a372..bdcb9e24d5 100644 --- a/nimbus/sync/beacon/worker/blocks_staged.nim +++ b/nimbus/sync/beacon/worker/blocks_staged.nim @@ -287,12 +287,12 @@ proc blocksStagedImport*( if nBn <= ctx.chain.baseNumber: trace info & ": ignoring block <= base", n, iv, B=ctx.chain.baseNumber.bnStr, L=ctx.chain.latestNumber.bnStr, - nthBn=nBn.bnStr, nthHash=qItem.data.getNthHash(n) + nthBn=nBn.bnStr, nthHash=qItem.data.getNthHash(n).short continue ctx.pool.chain.importBlock(qItem.data.blocks[n]).isOkOr: warn info & ": import block error", n, iv, B=ctx.chain.baseNumber.bnStr, L=ctx.chain.latestNumber.bnStr, - nthBn=nBn.bnStr, nthHash=qItem.data.getNthHash(n), `error`=error + nthBn=nBn.bnStr, nthHash=qItem.data.getNthHash(n).short, `error`=error # Restore what is left over below maxImport = ctx.chain.latestNumber() break importLoop @@ -319,7 +319,7 @@ proc blocksStagedImport*( ctx.pool.chain.forkChoice(nthHash, finHash).isOkOr: warn info & ": fork choice error", n, iv, B=ctx.chain.baseNumber.bnStr, L=ctx.chain.latestNumber.bnStr, - F=ctx.layout.final.bnStr, nthBn=nBn.bnStr, nthHash, + F=ctx.layout.final.bnStr, nthBn=nBn.bnStr, nthHash=nthHash.short, finHash=(if finHash == nthHash: "nthHash" else: "F"), `error`=error # Restore what is left over below maxImport = ctx.chain.latestNumber()