initialsync

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2019 License: GPL-3.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	P2P   p2p.P2P
	DB    db.Database
	Chain blockchainService
}

Config to set up the initial sync service.

type InitialSync

type InitialSync struct {
	// contains filtered or unexported fields
}

InitialSync service.

func NewInitialSync

func NewInitialSync(cfg *Config) *InitialSync

NewInitialSync configures the initial sync service responsible for bringing the node up to the latest head of the blockchain.

func (*InitialSync) Start

func (s *InitialSync) Start()

Start the initial sync service.

func (*InitialSync) Status

func (s *InitialSync) Status() error

Status of initial sync.

func (*InitialSync) Stop

func (s *InitialSync) Stop() error

Stop initial sync.

func (*InitialSync) Syncing

func (s *InitialSync) Syncing() bool

Syncing returns true if initial sync is still running.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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