• R/O
  • HTTP
  • SSH
  • HTTPS

vapor: 提交

Golang implemented sidechain for Bytom


Commit MetaInfo

修订版7f77e741bdf3d50c11c3e184311183a24c1691b9 (tree)
时间2020-01-07 15:08:25
作者shenao78 <shenao.78@163....>
Commitershenao78

Log Message

mov fast

更改概述

差异

--- a/netsync/chainmgr/block_keeper.go
+++ b/netsync/chainmgr/block_keeper.go
@@ -200,7 +200,7 @@ func (bk *blockKeeper) checkSyncType() int {
200200 bestHeight := bk.chain.BestBlockHeight()
201201 peer := bk.peers.BestIrreversiblePeer(consensus.SFFullNode | consensus.SFFastSync)
202202 if peer != nil {
203- if peerIrreversibleHeight := peer.IrreversibleHeight(); peerIrreversibleHeight >= bestHeight+minGapStartFastSync {
203+ if peerIrreversibleHeight := peer.Height(); peerIrreversibleHeight >= bestHeight+minGapStartFastSync {
204204 bk.fastSync.setSyncPeer(peer)
205205 return fastSyncType
206206 }
Show on old repository browser