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

Method Finalize

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

Finalize runs any post-transaction state modifications (e.g. block rewards) and assembles the final block. Note: The block header and state database might be updated to reflect any consensus rules that happen at finalization (e.g. block rewards).

(chain ChainReader, header *types.Header, state *state.StateDB, txs []*types.Transaction,
		uncles []*types.Header, receipts []*types.Receipt)

Source from the content-addressed store, hash-verified

113 // Note: The block header and state database might be updated to reflect any
114 // consensus rules that happen at finalization (e.g. block rewards).
115 Finalize(chain ChainReader, header *types.Header, state *state.StateDB, txs []*types.Transaction,
116 uncles []*types.Header, receipts []*types.Receipt) (*types.Block, error)
117
118 // Seal generates a new block for the given input block with the local miner's

Callers 3

GenerateChainFunction · 0.65
ProcessMethod · 0.65
commitNewWorkMethod · 0.65

Implementers 1

Dporconsensus/dpor/dpor.go

Calls

no outgoing calls

Tested by

no test coverage detected