From 85814cacc52b716a0543404d681e82406dcdc90e Mon Sep 17 00:00:00 2001 From: ledgerwatch Date: Mon, 30 May 2022 16:23:57 +0100 Subject: [PATCH] Warn not error when body is missing (#4309) Co-authored-by: Alexey Sharp --- turbo/snapshotsync/block_snapshots.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/turbo/snapshotsync/block_snapshots.go b/turbo/snapshotsync/block_snapshots.go index 8e13f1bfd..1824d329b 100644 --- a/turbo/snapshotsync/block_snapshots.go +++ b/turbo/snapshotsync/block_snapshots.go @@ -1073,7 +1073,8 @@ func DumpTxs(ctx context.Context, db kv.RoDB, segmentFile, tmpDir string, blockF h := common.BytesToHash(v) dataRLP := rawdb.ReadStorageBodyRLP(tx, h, blockNum) if dataRLP == nil { - return false, fmt.Errorf("body not found: %d, %x", blockNum, h) + log.Debug("DumpTxs block body not found", "height", blockNum, "hash", h) + return true, nil } var body types.BodyForStorage if e := rlp.DecodeBytes(dataRLP, &body); e != nil {