MCPcopy Create free account
hub / github.com/DNAProject/DNA / getCurrentTargetBlockNum

Method getCurrentTargetBlockNum

consensus/vbft/node_sync.go:263–271  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

261}
262
263func (self *Syncer) getCurrentTargetBlockNum() uint32 {
264 var targetBlkNum uint32
265 for _, syncer := range self.peers {
266 if syncer.active && syncer.targetBlkNum > targetBlkNum {
267 targetBlkNum = syncer.targetBlkNum
268 }
269 }
270 return targetBlkNum
271}
272func (self *Syncer) blockCheckMerkleRoot(blks BlockFromPeers) *Block {
273 merkleRoot := make(map[common.Uint256]int)
274 for _, blk := range blks {

Callers 1

checkStartSyncingMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected