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 (*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 }
Click to show internal directories.
Click to hide internal directories.