We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 8971ba7 + 6d6d498 commit 39d7ddcCopy full SHA for 39d7ddc
process/block/preprocess/basePreProcess.go
@@ -323,10 +323,14 @@ func (bpp *basePreProcess) computeExistingAndRequestMissing(
323
}
324
325
txShardInfoObject := &txShardInfo{senderShardID: miniBlock.SenderShardID, receiverShardID: miniBlock.ReceiverShardID}
326
+ // TODO refactor this section
327
method := process.SearchMethodJustPeek
328
if miniBlock.Type == block.InvalidBlock {
329
method = process.SearchMethodSearchFirst
330
331
+ if miniBlock.Type == block.SmartContractResultBlock {
332
+ method = process.SearchMethodPeekWithFallbackSearchFirst
333
+ }
334
335
for j := 0; j < len(miniBlock.TxHashes); j++ {
336
txHash := miniBlock.TxHashes[j]
0 commit comments