From 7ca6649e0ce2aa5e66cb457f4527c1e7538c375e Mon Sep 17 00:00:00 2001 From: "alex.sharov" Date: Fri, 11 Aug 2023 11:45:02 +0600 Subject: [PATCH] BlockReader: remove redundant check --- turbo/snapshotsync/freezeblocks/block_reader.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/turbo/snapshotsync/freezeblocks/block_reader.go b/turbo/snapshotsync/freezeblocks/block_reader.go index 1a353f984..9a1a3e936 100644 --- a/turbo/snapshotsync/freezeblocks/block_reader.go +++ b/turbo/snapshotsync/freezeblocks/block_reader.go @@ -598,9 +598,6 @@ func (r *BlockReader) bodyForStorageFromSnapshot(blockHeight uint64, sn *BodySeg return nil, buf, err } - if b.BaseTxId < sn.idxBodyNumber.BaseDataID() { - return nil, buf, fmt.Errorf(".idx file has wrong baseDataID? %d<%d, %s", b.BaseTxId, sn.idxBodyNumber.BaseDataID(), sn.seg.FilePath()) - } return b, buf, nil }