Documentation ¶
Index ¶
- type Hooks
- func (m *Hooks) ModifyHeader(header *types.Header, proposer types.Address) error
- func (m *Hooks) PostInsertBlock(block *types.Block) error
- func (m *Hooks) PreCommitState(header *types.Header, txn *state.Transition) error
- func (m *Hooks) ProcessHeader(header *types.Header) error
- func (m *Hooks) ShouldWriteTransactions(height uint64) bool
- func (m *Hooks) VerifyBlock(block *types.Block) error
- func (m *Hooks) VerifyHeader(header *types.Header) error
- type ModifyHeaderFunc
- type PostInsertBlockFunc
- type PreCommitStateFunc
- type ProcessHeaderFunc
- type ShouldWriteTransactionsFunc
- type VerifyBlockFunc
- type VerifyHeaderFunc
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 (*Hooks) PreCommitState ¶
func (*Hooks) ShouldWriteTransactions ¶
type PostInsertBlockFunc ¶
type PreCommitStateFunc ¶
type PreCommitStateFunc func(*types.Header, *state.Transition) error
type ProcessHeaderFunc ¶
type VerifyBlockFunc ¶
type VerifyHeaderFunc ¶
Click to show internal directories.
Click to hide internal directories.