sync

package
v0.0.0-...-f5f0bdb Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2019 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// REPORT_COUNT ...
	REPORT_COUNT int = 5
	// REQUEST_TIMEOUT ...
	// note: ms?
	REQUEST_TIMEOUT int = 60000
)

Variables

View Source
var (
	// ErrNilConfig ...
	ErrNilConfig = errors.New("nil config")
	// ErrNilChain ...
	ErrNilChain = errors.New("nil chain")
)

Functions

This section is empty.

Types

type Sync

type Sync struct {
	BestSeen *big.Int
	Status   synctypes.StatusEnum
	// contains filtered or unexported fields
}

Sync ...

func New

New ...

func (*Sync) On

On ...

func (*Sync) PeerRequests

func (s *Sync) PeerRequests(pr clienttypes.InterfacePeer) (clienttypes.Requests, error)

PeerRequests ...

func (*Sync) ProvideBlocks

func (s *Sync) ProvideBlocks(pr clienttypes.InterfacePeer, request *clienttypes.BlockRequest) error

ProvideBlocks ...

func (*Sync) QueueBlocks

func (s *Sync) QueueBlocks(pr clienttypes.InterfacePeer, response *clienttypes.BlockResponse) error

QueueBlocks ...

func (*Sync) RequestBlocks

func (s *Sync) RequestBlocks(pr clienttypes.InterfacePeer) error

RequestBlocks ...

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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