SetProcessor sets the processor required for making state modifications.
(processor Processor)
| 488 | |
| 489 | // SetProcessor sets the processor required for making state modifications. |
| 490 | func (bc *BlockChain) SetProcessor(processor Processor) { |
| 491 | bc.procmu.Lock() |
| 492 | defer bc.procmu.Unlock() |
| 493 | bc.processor = processor |
| 494 | } |
| 495 | |
| 496 | // SetValidator sets the validator which is used to validate incoming blocks. |
| 497 | func (bc *BlockChain) SetValidator(validator Validator) { |
no test coverage detected