Fix log for block body network fetching (#1066)

This commit is contained in:
Kim De Mey 2022-04-15 16:10:05 +02:00 committed by GitHub
parent f2f204293e
commit 991edc1711
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -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