worker

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2018 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Start

func Start()

func Start(quit chan os.Signal) {

func SyncAllConsensusState

func SyncAllConsensusState()

func SyncAllNodeBlock

func SyncAllNodeBlock()

func SyncBlock

func SyncBlock(chanID, remote string, maxSync int64, maxTime time.Duration) error

SyncBlock 同步块 maxSync 一次最多同步块数量 maxTime 程序最多运行时长,如果没有设置,则默认最长60s

func SyncConsensusState

func SyncConsensusState(chanID, remote string) error

SyncConsensusState 同步共识过程

func SyncPeer

func SyncPeer(chanID, remote string) error

SyncPeer 同步p2p中peer信息

func SyncPeersLoop

func SyncPeersLoop()

SyncPeersLoop 同步peer节点信息

Types

This section is empty.

Jump to

Keyboard shortcuts

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