Skip to content

Commit 19f5f7c

Browse files
MariusVanDerWijdencp-wjhan
authored andcommitted
core: allow external processor (ethereum#25233)
1 parent 1f4d550 commit 19f5f7c

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
@@ -2399,9 +2399,10 @@ func (bc *BlockChain) InsertHeaderChain(chain []*types.Header, checkFreq int) (i
23992399
return 0, err
24002400
}
24012401

2402-
// SetBlockValidatorForTesting sets the current validator.
2402+
// SetBlockValidatorAndProcessorForTesting sets the current validator and processor.
24032403
// This method can be used to force an invalid blockchain to be verified for tests.
24042404
// This method is unsafe and should only be used before block import starts.
2405-
func (bc *BlockChain) SetBlockValidatorForTesting(v Validator) {
2405+
func (bc *BlockChain) SetBlockValidatorAndProcessorForTesting(v Validator, p Processor) {
24062406
bc.validator = v
2407+
bc.processor = p
24072408
}

0 commit comments

Comments
 (0)