Skip to content

Commit 39d7ddc

Browse files
Merge pull request #4718 from ElrondNetwork/test-scr-processor-lookup
Improve SCR lookup in smartcontract preprocessor
2 parents 8971ba7 + 6d6d498 commit 39d7ddc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

process/block/preprocess/basePreProcess.go

+4
Original file line numberDiff line numberDiff line change
@@ -323,10 +323,14 @@ func (bpp *basePreProcess) computeExistingAndRequestMissing(
323323
}
324324

325325
txShardInfoObject := &txShardInfo{senderShardID: miniBlock.SenderShardID, receiverShardID: miniBlock.ReceiverShardID}
326+
// TODO refactor this section
326327
method := process.SearchMethodJustPeek
327328
if miniBlock.Type == block.InvalidBlock {
328329
method = process.SearchMethodSearchFirst
329330
}
331+
if miniBlock.Type == block.SmartContractResultBlock {
332+
method = process.SearchMethodPeekWithFallbackSearchFirst
333+
}
330334

331335
for j := 0; j < len(miniBlock.TxHashes); j++ {
332336
txHash := miniBlock.TxHashes[j]

0 commit comments

Comments
 (0)