Documentation ¶
Index ¶
- type Block
- type BlockParams
- type BlockState
- type BlockStateV1
- type BlockV1
- type Dispatcher
- type Executor
- type ExecutorV1
- func (x *ExecutorV1) Begin(params execute.BlockParams) (execute.Block, error)
- func (x *ExecutorV1) EnableTimers()
- func (x *ExecutorV1) InitChainValidators(initVal []abcitypes.ValidatorUpdate) (additional [][]byte, err error)
- func (x *ExecutorV1) LoadStateRoot(batch *database.Batch) ([]byte, error)
- func (x *ExecutorV1) RestoreSnapshot(batch database.Beginner, snapshot ioutil2.SectionReader) error
- func (x *ExecutorV1) StoreBlockTimers(ds *logging.DataSet)
- func (x *ExecutorV1) Validate(batch *database.Batch, messages []messaging.Message) ([]*protocol.TransactionStatus, error)
- type Multi
- func (m *Multi) Begin(params BlockParams) (Block, error)
- func (m *Multi) EnableTimers()
- func (m *Multi) InitChainValidators(initVal []abcitypes.ValidatorUpdate) (additional [][]byte, err error)
- func (m *Multi) LoadStateRoot(batch *database.Batch) ([]byte, error)
- func (m *Multi) RestoreSnapshot(db database.Beginner, snapshot ioutil2.SectionReader) error
- func (m *Multi) StoreBlockTimers(ds *logging.DataSet)
- func (m *Multi) Validate(batch *database.Batch, messages []messaging.Message) ([]*protocol.TransactionStatus, error)
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlockParams ¶
type BlockParams = execute.BlockParams
type BlockState ¶
type BlockState = execute.BlockState
type BlockStateV1 ¶
BlockStateV1 translates execute.BlockState calls for a v1 executor block.
func (*BlockStateV1) Commit ¶
func (s *BlockStateV1) Commit() error
func (*BlockStateV1) DidCompleteMajorBlock ¶
func (s *BlockStateV1) DidCompleteMajorBlock() (uint64, time.Time, bool)
func (*BlockStateV1) Discard ¶
func (s *BlockStateV1) Discard()
func (*BlockStateV1) IsEmpty ¶
func (s *BlockStateV1) IsEmpty() bool
func (*BlockStateV1) Params ¶
func (b *BlockStateV1) Params() execute.BlockParams
type BlockV1 ¶
BlockV1 translates execute.Block calls for a v1 executor/block.
func (*BlockV1) Close ¶
func (b *BlockV1) Close() (execute.BlockState, error)
Close ends the block and returns the block state.
func (*BlockV1) Params ¶
func (b *BlockV1) Params() execute.BlockParams
type Dispatcher ¶
type Dispatcher = execute.Dispatcher
type Executor ¶
func NewExecutor ¶
NewExecutor creates a new executor.
type ExecutorV1 ¶
ExecutorV1 implements execute.Executor calls for a v1 executor.
func (*ExecutorV1) Begin ¶
func (x *ExecutorV1) Begin(params execute.BlockParams) (execute.Block, error)
Begin constructs a BlockV1 and calls block.Executor.BeginBlock.
func (*ExecutorV1) EnableTimers ¶
func (x *ExecutorV1) EnableTimers()
func (*ExecutorV1) InitChainValidators ¶
func (x *ExecutorV1) InitChainValidators(initVal []abcitypes.ValidatorUpdate) (additional [][]byte, err error)
func (*ExecutorV1) LoadStateRoot ¶
func (x *ExecutorV1) LoadStateRoot(batch *database.Batch) ([]byte, error)
func (*ExecutorV1) RestoreSnapshot ¶
func (x *ExecutorV1) RestoreSnapshot(batch database.Beginner, snapshot ioutil2.SectionReader) error
func (*ExecutorV1) StoreBlockTimers ¶
func (x *ExecutorV1) StoreBlockTimers(ds *logging.DataSet)
func (*ExecutorV1) Validate ¶
func (x *ExecutorV1) Validate(batch *database.Batch, messages []messaging.Message) ([]*protocol.TransactionStatus, error)
Validate converts the message to a delivery and validates it. Validate returns an error if the message is not a [message.LegacyMessage].
type Multi ¶
type Multi struct {
// contains filtered or unexported fields
}
func (*Multi) EnableTimers ¶
func (m *Multi) EnableTimers()
func (*Multi) InitChainValidators ¶
func (m *Multi) InitChainValidators(initVal []abcitypes.ValidatorUpdate) (additional [][]byte, err error)
func (*Multi) RestoreSnapshot ¶
func (*Multi) StoreBlockTimers ¶
Click to show internal directories.
Click to hide internal directories.