Skip to content

Commit

Permalink
- test
Browse files Browse the repository at this point in the history
  • Loading branch information
iulianpascalau committed Nov 20, 2022
1 parent 8971ba7 commit 6d6d498
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions process/block/preprocess/basePreProcess.go
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 6d6d498

Please sign in to comment.