Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlockPropagator ¶
type BlockPropagator struct {
// contains filtered or unexported fields
}
BlockPropagator block message propagator
func NewBlockPropagator ¶
func NewBlockPropagator(p2p p2p.P2PAPI, blockOut chan<- interface{}, eventCenter types.EventCenter) (*BlockPropagator, error)
NewBlockPropagator create a new NewBlockPropagator instance.
func (*BlockPropagator) BlockEventFunc ¶
func (bp *BlockPropagator) BlockEventFunc(event interface{})
BlockEventFunc get a EventFunc that can be bound to event center
type TxPropagator ¶
type TxPropagator struct {
// contains filtered or unexported fields
}
TxPropagator transaction message propagator
func NewTxPropagator ¶
func NewTxPropagator(p2p p2p.P2PAPI, txOut chan<- interface{}, eventCenter types.EventCenter) (*TxPropagator, error)
NewBlockPropagator create a new NewBlockPropagator instance.
func (*TxPropagator) TxEventFunc ¶ added in v1.1.0
func (tp *TxPropagator) TxEventFunc(event interface{})
BlockEventFunc get a EventFunc that can be bound to event center
Click to show internal directories.
Click to hide internal directories.