From 991edc17117bb1052651ea852b701c3d5c56bffe Mon Sep 17 00:00:00 2001 From: Kim De Mey Date: Fri, 15 Apr 2022 16:10:05 +0200 Subject: [PATCH] Fix log for block body network fetching (#1066) --- fluffy/network/history/history_network.nim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fluffy/network/history/history_network.nim b/fluffy/network/history/history_network.nim index 1284fcb13..1ce8e0ecf 100644 --- a/fluffy/network/history/history_network.nim +++ b/fluffy/network/history/history_network.nim @@ -183,9 +183,10 @@ proc getBlock*( let maybeBody = validateBodyBytes(bodyContent.content, header.txRoot, header.ommersHash) if maybeBody.isNone(): - info "Fetched block body from the network", hash return none(Block) + info "Fetched block body from the network", hash + let blockBody = maybeBody.unsafeGet() # body is valid, propagate it to interested peers