From 2d2d5bd5493eac183c5967cff2d42f5437c9956d Mon Sep 17 00:00:00 2001 From: tersec Date: Fri, 18 Aug 2023 19:21:40 +0000 Subject: [PATCH] fix blob sent/not sent logging (#5316) --- beacon_chain/validators/message_router.nim | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/beacon_chain/validators/message_router.nim b/beacon_chain/validators/message_router.nim index c7d926d7a..d6b5b3008 100644 --- a/beacon_chain/validators/message_router.nim +++ b/beacon_chain/validators/message_router.nim @@ -89,8 +89,7 @@ func shortLog*(v: SignedBlobSidecars): auto = type RouteBlockResult = Result[Opt[BlockRef], cstring] proc routeSignedBeaconBlock*( router: ref MessageRouter, blck: ForkySignedBeaconBlock, - blobsOpt: Opt[SignedBlobSidecars]): - Future[RouteBlockResult] {.async.} = + blobsOpt: Opt[SignedBlobSidecars]): Future[RouteBlockResult] {.async.} = ## Validate and broadcast beacon block, then add it to the block database ## Returns the new Head when block is added successfully to dag, none when ## block passes validation but is not added, and error otherwise @@ -159,9 +158,9 @@ proc routeSignedBeaconBlock*( doAssert res.finished() if res.failed(): notice "Blob not sent", - blob = shortLog(signedBlobs[i]) + blob = shortLog(signedBlobs[i]), error = res.error[] else: - notice "Blob sent", blob = shortLog(signedBlobs[i]), error = res.error[] + notice "Blob sent", blob = shortLog(signedBlobs[i]) blobs = Opt.some(blobsOpt.get().mapIt(newClone(it.message))) let added = await router[].blockProcessor[].addBlock(