consensus

package
v0.0.0-...-bc2dafa Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2020 License: Apache-2.0 Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CalcDifficulty

func CalcDifficulty(config *params.ChainConfig, time uint64, parent *types.Header) *big.Int

Types

type UuuHash

type UuuHash struct {
	con.Engine
}

func CreateConsensusEngine

func CreateConsensusEngine() *UuuHash

func (*UuuHash) APIs

func (u *UuuHash) APIs(chain con.ChainReader) []rpc.API

func (*UuuHash) Author

func (u *UuuHash) Author(header *types.Header) (common.Address, error)

func (*UuuHash) CalcDifficulty

func (u *UuuHash) CalcDifficulty(chain con.ChainReader, time uint64, parent *types.Header) *big.Int

func (*UuuHash) Close

func (u *UuuHash) Close() error

func (*UuuHash) Finalize

func (u *UuuHash) Finalize(chain con.ChainReader, header *types.Header, state *state.StateDB, txs []*types.Transaction,
	uncles []*types.Header, receipts []*types.Receipt) (*types.Block, error)

func (*UuuHash) Prepare

func (u *UuuHash) Prepare(chain con.ChainReader, header *types.Header) error

return nil All verifications are returned by default.

func (*UuuHash) Seal

func (u *UuuHash) Seal(chain con.ChainReader, block *types.Block, results chan<- *types.Block, stop <-chan struct{}) error

func (*UuuHash) SealHash

func (u *UuuHash) SealHash(header *types.Header) (hash common.Hash)

func (*UuuHash) VerifyHeader

func (u *UuuHash) VerifyHeader(chain con.ChainReader, header *types.Header, seal bool) error

return nil All verifications are returned by default.

func (*UuuHash) VerifyHeaders

func (u *UuuHash) VerifyHeaders(chain con.ChainReader, headers []*types.Header, seals []bool) (chan<- struct{}, <-chan error)

func (*UuuHash) VerifySeal

func (u *UuuHash) VerifySeal(chain con.ChainReader, header *types.Header) error

return nil All verifications are returned by default.

func (*UuuHash) VerifyUncles

func (u *UuuHash) VerifyUncles(chain con.ChainReader, block *types.Block) error

return nil All verifications are returned by default.

Jump to

Keyboard shortcuts

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