qkchash

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 13, 2019 License: LGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type QKCHash

type QKCHash struct {
	*consensus.CommonEngine
	// contains filtered or unexported fields
}

QKCHash is a consensus engine implementing PoW with qkchash algo. See the interface definition: https://github.com/ethereum/go-ethereum/blob/9e9fc87e70accf2b81be8772ab2ab0c914e95666/consensus/consensus.go#L111 Implements consensus.Pow

func New

func New(useNative bool, diffCalculator consensus.DifficultyCalculator, remote bool) *QKCHash

New returns a QKCHash scheme.

func (*QKCHash) Finalize

func (q *QKCHash) Finalize(chain consensus.ChainReader, header types.IHeader, state *state.StateDB, txs []*types.Transaction,
	receipts []*types.Receipt) (types.IBlock, error)

func (*QKCHash) Prepare

func (q *QKCHash) Prepare(chain consensus.ChainReader, header types.IHeader) error

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL