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

Method Validator

core/blockchain.go:504–508  ·  view source on GitHub ↗

Validator returns the current validator.

()

Source from the content-addressed store, hash-verified

502
503// Validator returns the current validator.
504func (bc *BlockChain) Validator() Validator {
505 bc.procmu.RLock()
506 defer bc.procmu.RUnlock()
507 return bc.validator
508}
509
510// Processor returns the current processor.
511func (bc *BlockChain) Processor() Processor {

Callers 4

ValidateBlockBodyMethod · 0.95
insertChainMethod · 0.95
buildFunction · 0.80
newEngineFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected