Documentation ¶
Index ¶
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 order
func New ¶
func New(chainLedger ledger.Ledger, logger logrus.FieldLogger) (*BlockExecutor, error)
New creates executor instance
func (*BlockExecutor) ExecuteBlock ¶
func (exec *BlockExecutor) ExecuteBlock(block *pb.Block)
ExecuteBlock executes block from order
func (*BlockExecutor) SubscribeBlockEvent ¶
func (exec *BlockExecutor) SubscribeBlockEvent(ch chan<- events.NewBlockEvent) event.Subscription
SubscribeBlockEvent registers a subscription of NewBlockEvent.
func (*BlockExecutor) SyncExecuteBlock ¶
func (exec *BlockExecutor) SyncExecuteBlock(block *pb.Block)
type Executor ¶
type Executor interface { // Start Start() error // Stop Stop() error // ExecutorBlock ExecuteBlock(*pb.Block) // SubscribeBlockEvent SubscribeBlockEvent(chan<- events.NewBlockEvent) event.Subscription }
Click to show internal directories.
Click to hide internal directories.