Senders: nil check (#6717)

This commit is contained in:
Alex Sharov 2023-01-27 10:19:33 +07:00 committed by GitHub
parent 638403e54a
commit d908f57528
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -232,6 +232,10 @@ Loop:
}
body := rawdb.ReadCanonicalBodyWithTransactions(tx, blockHash, blockNumber)
if body == nil {
log.Warn(fmt.Sprintf("[%s] ReadCanonicalBodyWithTransactions can't find block", logPrefix), "num", blockNumber, "hash", blockHash)
continue
}
select {
case recoveryErr := <-errCh: