Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlockSyncer ¶
type BlockSyncer struct {
// contains filtered or unexported fields
}
BlockSyncer block synchronize program
func NewBlockSyncer ¶
func NewBlockSyncer(p2p p2p.P2PAPI, sendChan chan<- interface{}, eventCenter types.EventCenter) (*BlockSyncer, error)
NewBlockSyncer create block syncer instance.
func (*BlockSyncer) GatherNewBlockFunc ¶ added in v1.0.0
func (syncer *BlockSyncer) GatherNewBlockFunc(msg interface{})
GatherNewBlockFunc gather new block from p2p network.
type BlockSyncerAPI ¶
type BlockSyncerAPI interface { // Start star block syncer Start() error // Stop stop block syncer Stop() }
Click to show internal directories.
Click to hide internal directories.