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

Method VerifyHeader

consensus/consensus.go:89–89  ·  view source on GitHub ↗

VerifyHeader checks whether a header conforms to the consensus rules of a given engine. Verifying the sigs may be done optionally here, or explicitly via the VerifySeal method. `refHeader' points to the original header, but `header' only points to a copy.

(chain ChainReader, header *types.Header, verifySigs bool, refHeader *types.Header)

Source from the content-addressed store, hash-verified

87 // via the VerifySeal method.
88 // `refHeader' points to the original header, but `header' only points to a copy.
89 VerifyHeader(chain ChainReader, header *types.Header, verifySigs bool, refHeader *types.Header) error
90
91 // VerifyHeaders is similar to VerifyHeader, but verifies a batch of headers
92 // concurrently. The method returns a quit channel to abort the operations and

Callers 4

testBlockChainImportFunction · 0.65
testHeaderChainImportFunction · 0.65
NewProtocolManagerFunction · 0.65
traceBlockMethod · 0.65

Implementers 1

Dporconsensus/dpor/dpor.go

Calls

no outgoing calls

Tested by 2

testBlockChainImportFunction · 0.52
testHeaderChainImportFunction · 0.52