Skip to content

Commit

Permalink
Cosmetics
Browse files Browse the repository at this point in the history
  • Loading branch information
mjfh committed Dec 6, 2024
1 parent 90dd86b commit 1634c0a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions nimbus/sync/beacon/worker/blocks_staged.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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()
Expand Down

0 comments on commit 1634c0a

Please sign in to comment.