MCPcopy Create free account
hub / github.com/CPChain/chain / SetProcessor

Method SetProcessor

core/blockchain.go:490–494  ·  view source on GitHub ↗

SetProcessor sets the processor required for making state modifications.

(processor Processor)

Source from the content-addressed store, hash-verified

488
489// SetProcessor sets the processor required for making state modifications.
490func (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.
497func (bc *BlockChain) SetValidator(validator Validator) {

Callers 1

NewBlockChainFunction · 0.95

Calls 2

LockMethod · 0.80
UnlockMethod · 0.80

Tested by

no test coverage detected