hook

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 23, 2023 License: Apache-2.0 Imports: 2 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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