Skip to content

Commit 87bb5db

Browse files
core: allow external processor (#25233)
1 parent f6ac80c commit 87bb5db

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

core/blockchain.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2375,9 +2375,10 @@ func (bc *BlockChain) InsertHeaderChain(chain []*types.Header, checkFreq int) (i
23752375
return 0, err
23762376
}
23772377

2378-
// SetBlockValidatorForTesting sets the current validator.
2378+
// SetBlockValidatorAndProcessorForTesting sets the current validator and processor.
23792379
// This method can be used to force an invalid blockchain to be verified for tests.
23802380
// This method is unsafe and should only be used before block import starts.
2381-
func (bc *BlockChain) SetBlockValidatorForTesting(v Validator) {
2381+
func (bc *BlockChain) SetBlockValidatorAndProcessorForTesting(v Validator, p Processor) {
23822382
bc.validator = v
2383+
bc.processor = p
23832384
}

0 commit comments

Comments
 (0)