From 6d6d498910f0dc9fe227a921de16f4441a6dbf36 Mon Sep 17 00:00:00 2001 From: jules01 Date: Sun, 20 Nov 2022 23:33:47 +0200 Subject: [PATCH] - test --- process/block/preprocess/basePreProcess.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/process/block/preprocess/basePreProcess.go b/process/block/preprocess/basePreProcess.go index 37e33d887a7..82d42a26cae 100644 --- a/process/block/preprocess/basePreProcess.go +++ b/process/block/preprocess/basePreProcess.go @@ -323,10 +323,14 @@ func (bpp *basePreProcess) computeExistingAndRequestMissing( } txShardInfoObject := &txShardInfo{senderShardID: miniBlock.SenderShardID, receiverShardID: miniBlock.ReceiverShardID} + // TODO refactor this section method := process.SearchMethodJustPeek if miniBlock.Type == block.InvalidBlock { method = process.SearchMethodSearchFirst } + if miniBlock.Type == block.SmartContractResultBlock { + method = process.SearchMethodPeekWithFallbackSearchFirst + } for j := 0; j < len(miniBlock.TxHashes); j++ { txHash := miniBlock.TxHashes[j]