syncer

package
v1.0.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2020 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MerkleSyncer

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

MerkleSyncer represents the necessary data for sync block wrappers from bitxhub

func New

func New(ag agent.Agent, quorum uint64, validators []types.Address, storage storage.Storage) (*MerkleSyncer, error)

New creates instance of MerkleSyncer given agent interacting with bitxhub, validators addresses of bitxhub and local storage

func (*MerkleSyncer) QueryWrapper

func (syncer *MerkleSyncer) QueryWrapper(height uint64) (*pb.MerkleWrapper, error)

func (*MerkleSyncer) Start

func (syncer *MerkleSyncer) Start() error

Start implements Syncer

func (*MerkleSyncer) Stop

func (syncer *MerkleSyncer) Stop() error

Stop implements Syncer

type Syncer

type Syncer interface {
	// Start starts the service of syncer
	Start() error

	// Stop stops the service of syncer
	Stop() error
}

Directories

Path Synopsis
Package mock_syncer is a generated GoMock package.
Package mock_syncer is a generated GoMock package.

Jump to

Keyboard shortcuts

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