hook

package
v0.0.0-...-3672da2 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Hooks

type Hooks struct {
	ShouldWriteTransactionFunc ShouldWriteTransactionsFunc
	ModifyHeaderFunc           ModifyHeaderFunc
	VerifyHeaderFunc           VerifyHeaderFunc
	VerifyBlockFunc            VerifyBlockFunc
	ProcessHeaderFunc          ProcessHeaderFunc
	PreCommitStateFunc         PreCommitStateFunc
	PostInsertBlockFunc        PostInsertBlockFunc
}

func (*Hooks) ModifyHeader

func (m *Hooks) ModifyHeader(header *types.Header, proposer types.Address) error

func (*Hooks) PostInsertBlock

func (m *Hooks) PostInsertBlock(block *types.Block) error

func (*Hooks) PreCommitState

func (m *Hooks) PreCommitState(header *types.Header, txn *state.Transition) error

func (*Hooks) ProcessHeader

func (m *Hooks) ProcessHeader(header *types.Header) error

func (*Hooks) ShouldWriteTransactions

func (m *Hooks) ShouldWriteTransactions(height uint64) bool

func (*Hooks) VerifyBlock

func (m *Hooks) VerifyBlock(block *types.Block) error

func (*Hooks) VerifyHeader

func (m *Hooks) VerifyHeader(header *types.Header) error

type ModifyHeaderFunc

type ModifyHeaderFunc func(*types.Header, types.Address) error

type PostInsertBlockFunc

type PostInsertBlockFunc func(*types.Block) error

type PreCommitStateFunc

type PreCommitStateFunc func(*types.Header, *state.Transition) error

type ProcessHeaderFunc

type ProcessHeaderFunc func(*types.Header) error

type ShouldWriteTransactionsFunc

type ShouldWriteTransactionsFunc func(uint64) bool

type VerifyBlockFunc

type VerifyBlockFunc func(*types.Block) error

type VerifyHeaderFunc

type VerifyHeaderFunc func(*types.Header) error

Jump to

Keyboard shortcuts

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