Documentation
¶
Index ¶
- type BlockExecutor
- func (exec *BlockExecutor) ApplyReadonlyTransactions(txs []*types.Transaction) []*types.Receipt
- func (exec *BlockExecutor) AsyncExecuteBlock(block *common.CommitEvent)
- func (exec *BlockExecutor) ExecuteBlock(block *common.CommitEvent)
- func (exec *BlockExecutor) GetChainConfig() *params.ChainConfig
- func (exec *BlockExecutor) NewEvmWithViewLedger(txCtx ethvm.TxContext, vmConfig ethvm.Config) (*ethvm.EVM, error)
- func (exec *BlockExecutor) Start() error
- func (exec *BlockExecutor) Stop() error
- func (exec *BlockExecutor) SubscribeBlockEvent(ch chan<- events.ExecutedEvent) event.Subscription
- func (exec *BlockExecutor) SubscribeBlockEventForRemote(ch chan<- events.ExecutedEvent) event.Subscription
- func (exec *BlockExecutor) SubscribeLogsEvent(ch chan<- []*types.EvmLog) event.Subscription
- type BlockWrapper
- type Executor
- type InvalidReason
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlockExecutor ¶
type BlockExecutor struct {
// contains filtered or unexported fields
}
BlockExecutor executes block from consensus
func (*BlockExecutor) ApplyReadonlyTransactions ¶
func (exec *BlockExecutor) ApplyReadonlyTransactions(txs []*types.Transaction) []*types.Receipt
func (*BlockExecutor) AsyncExecuteBlock ¶
func (exec *BlockExecutor) AsyncExecuteBlock(block *common.CommitEvent)
func (*BlockExecutor) ExecuteBlock ¶
func (exec *BlockExecutor) ExecuteBlock(block *common.CommitEvent)
ExecuteBlock executes block from consensus
func (*BlockExecutor) GetChainConfig ¶
func (exec *BlockExecutor) GetChainConfig() *params.ChainConfig
func (*BlockExecutor) NewEvmWithViewLedger ¶
func (*BlockExecutor) SubscribeBlockEvent ¶
func (exec *BlockExecutor) SubscribeBlockEvent(ch chan<- events.ExecutedEvent) event.Subscription
SubscribeBlockEvent registers a subscription of ExecutedEvent.
func (*BlockExecutor) SubscribeBlockEventForRemote ¶
func (exec *BlockExecutor) SubscribeBlockEventForRemote(ch chan<- events.ExecutedEvent) event.Subscription
SubscribeBlockEventForRemote registers a subscription of ExecutedEvent.
func (*BlockExecutor) SubscribeLogsEvent ¶
func (exec *BlockExecutor) SubscribeLogsEvent(ch chan<- []*types.EvmLog) event.Subscription
type BlockWrapper ¶
type BlockWrapper struct {
// contains filtered or unexported fields
}
type Executor ¶
type Executor interface {
// Start
Start() error
// Stop
Stop() error
// AsyncExecutorBlock
AsyncExecuteBlock(commitEvent *common.CommitEvent)
ExecuteBlock(commitEvent *common.CommitEvent)
// ApplyReadonlyTransactions execute readonly tx
ApplyReadonlyTransactions(txs []*types.Transaction) []*types.Receipt
// SubscribeBlockEvent
SubscribeBlockEvent(chan<- events.ExecutedEvent) event.Subscription
// SubscribeBlockEventForRemote
SubscribeBlockEventForRemote(chan<- events.ExecutedEvent) event.Subscription
// SubscribeLogEvent
SubscribeLogsEvent(chan<- []*types.EvmLog) event.Subscription
NewEvmWithViewLedger(txCtx vm.TxContext, vmConfig vm.Config) (*vm.EVM, error)
GetChainConfig() *params.ChainConfig
}
type InvalidReason ¶
type InvalidReason string
Click to show internal directories.
Click to hide internal directories.