dummy

package
v0.0.0-...-043c29e Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2021 License: LGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConsensusCallbacks

type ConsensusCallbacks struct {
	OnAPIs                OnAPIsCallbackType
	OnFinalize            OnFinalizeCallbackType
	OnFinalizeAndAssemble OnFinalizeAndAssembleCallbackType
	OnExtraStateChange    OnExtraStateChangeType
}

type DummyEngine

type DummyEngine struct {
	// contains filtered or unexported fields
}

func NewDummyEngine

func NewDummyEngine(cb *ConsensusCallbacks) *DummyEngine

func (*DummyEngine) APIs

func (self *DummyEngine) APIs(chain consensus.ChainHeaderReader) (res []rpc.API)

func (*DummyEngine) Author

func (self *DummyEngine) Author(header *types.Header) (common.Address, error)

func (*DummyEngine) CalcDifficulty

func (self *DummyEngine) CalcDifficulty(chain consensus.ChainHeaderReader, time uint64, parent *types.Header) *big.Int

func (*DummyEngine) Close

func (self *DummyEngine) Close() error

func (*DummyEngine) ExtraStateChange

func (self *DummyEngine) ExtraStateChange(block *types.Block, statedb *state.StateDB) error

func (*DummyEngine) Finalize

func (self *DummyEngine) Finalize(
	chain consensus.ChainHeaderReader, header *types.Header,
	state *state.StateDB, txs []*types.Transaction,
	uncles []*types.Header)

func (*DummyEngine) FinalizeAndAssemble

func (self *DummyEngine) FinalizeAndAssemble(chain consensus.ChainHeaderReader, header *types.Header, state *state.StateDB, txs []*types.Transaction,
	uncles []*types.Header, receipts []*types.Receipt) (*types.Block, error)

func (*DummyEngine) Prepare

func (self *DummyEngine) Prepare(chain consensus.ChainHeaderReader, header *types.Header) error

func (*DummyEngine) VerifyHeader

func (self *DummyEngine) VerifyHeader(chain consensus.ChainHeaderReader, header *types.Header) error

func (*DummyEngine) VerifySeal

func (self *DummyEngine) VerifySeal(chain consensus.ChainHeaderReader, header *types.Header) error

func (*DummyEngine) VerifyUncles

func (self *DummyEngine) VerifyUncles(chain consensus.ChainReader, block *types.Block) error

type OnAPIsCallbackType

type OnAPIsCallbackType = func(consensus.ChainHeaderReader) []rpc.API

type OnExtraStateChangeType

type OnExtraStateChangeType = func(block *types.Block, statedb *state.StateDB) error

type OnFinalizeAndAssembleCallbackType

type OnFinalizeAndAssembleCallbackType = func(header *types.Header, state *state.StateDB, txs []*types.Transaction) ([]byte, error)

type OnFinalizeCallbackType

type OnFinalizeCallbackType = func(chain consensus.ChainHeaderReader, header *types.Header, state *state.StateDB, txs []*types.Transaction, uncles []*types.Header)

Jump to

Keyboard shortcuts

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