synchronize

package
v1.10.3-0...-ec03cfc Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2021 License: LGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	Downloaders *downloader.Downloaders
}

Service is simply a adapter of Downloaders, which support block synchronization

func NewService

func NewService(host p2p.Host, bcs []*core.BlockChain, config downloader.Config) *Service

NewService creates the a new downloader service

func (*Service) APIs

func (s *Service) APIs() []rpc.API

APIs return all APIs of the service

func (*Service) Start

func (s *Service) Start() error

Start start the service

func (*Service) Stop

func (s *Service) Stop() error

Stop stop the service

Jump to

Keyboard shortcuts

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