eventtype

package
v0.0.0-...-5fb9e85 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2022 License: Apache-2.0 Imports: 2 Imported by: 4

Documentation

Overview

Package eventtype

@author: xwc1125

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlockBroadcastEvent

type BlockBroadcastEvent struct{}

BlockBroadcastEvent 区块广播事件

type BlockReadyEvent

type BlockReadyEvent struct {
	Block *models.Block
}

BlockReadyEvent 区块池收到后进行入库处理

type ChainEvent

type ChainEvent struct {
	Block *models.Block
	Hash  types.Hash
}

ChainEvent 区块事件

type ChainHeadEvent

type ChainHeadEvent struct{ Block *models.Block }

ChainHeadEvent 链head事件

type ChainSideEvent

type ChainSideEvent struct{ Block *models.Block }

ChainSideEvent 侧链事件

type CommitBlockEvent

type CommitBlockEvent struct {
	Block *models.Block
}

CommitBlockEvent 提交区块的事件

type CommitCompleteEvent

type CommitCompleteEvent struct {
	Block *models.Block
}

CommitCompleteEvent 提交完成的事件

type ErrOccurEvent

type ErrOccurEvent struct {
	Err error
}

ErrOccurEvent 执行中出现错误时的事件

type ExecBlockEvent

type ExecBlockEvent struct {
	Block *models.Block
}

ExecBlockEvent 执行区块的事件

type ExecFinishEvent

type ExecFinishEvent struct {
	Res bool // 如果执行成功,返回true
}

ExecFinishEvent 执行结束事件

type ExecPendingTxEvent

type ExecPendingTxEvent struct {
	Txs models.Transactions
}

ExecPendingTxEvent 执行pending交易事件

type NewTxEvent

type NewTxEvent struct {
	Tx models.Transaction
}

NewTxEvent 新交易事件

type NewTxsEvent

type NewTxsEvent struct {
	Txs models.Transactions
}

NewTxsEvent 新交易集事件

type ProposeBlockEvent

type ProposeBlockEvent struct {
	Block *models.Block
}

ProposeBlockEvent 提议区块事件

type RollbackEvent

type RollbackEvent struct{}

RollbackEvent 回滚事件

type TxBroadcastEvent

type TxBroadcastEvent struct{}

TxBroadcastEvent 交易广播事件

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL