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

Method PrepareBlock

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

PrepareBlock initializes the consensus fields of a block header according to the rules of a particular engine. The changes are executed inline.

(chain ChainReader, header *types.Header)

Source from the content-addressed store, hash-verified

107 // PrepareBlock initializes the consensus fields of a block header according to the
108 // rules of a particular engine. The changes are executed inline.
109 PrepareBlock(chain ChainReader, header *types.Header) error
110
111 // Finalize runs any post-transaction state modifications (e.g. block rewards)
112 // and assembles the final block.

Callers 2

makeHeaderFunction · 0.65
commitNewWorkMethod · 0.65

Implementers 1

Dporconsensus/dpor/dpor.go

Calls

no outgoing calls

Tested by

no test coverage detected