syncer

package
v1.24.0 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2022 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StateSyncer

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

func New

func New(blockFetch uint64, peerMgr orderPeerMgr.OrderPeerManager, quorum uint64, peerIds []uint64, logger logrus.FieldLogger) (*StateSyncer, error)

func (*StateSyncer) SyncBFTBlocks

func (s *StateSyncer) SyncBFTBlocks(begin, end uint64, metaHash *types.Hash, blockCh chan *pb.Block) error

func (*StateSyncer) SyncCFTBlocks

func (s *StateSyncer) SyncCFTBlocks(begin, end uint64, blockCh chan *pb.Block) error

type Syncer

type Syncer interface {
	// SyncCFTBlocks fetches the block list from other node, and just fetches but not verifies the block
	SyncCFTBlocks(begin, end uint64, blockCh chan *pb.Block) error

	// SyncBFTBlocks fetches the block list from quorum nodes, and verifies all the block
	SyncBFTBlocks(begin, end uint64, metaHash *types.Hash, blockCh chan *pb.Block) error
}

Jump to

Keyboard shortcuts

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