• R/O
  • HTTP
  • SSH
  • HTTPS

vapor: 提交

Golang implemented sidechain for Bytom


Commit MetaInfo

修订版da3156fda31f8f01140d271e23970bbda644d8d8 (tree)
时间2020-02-26 16:09:58
作者shenao78 <shenao.78@163....>
Commitershenao78

Log Message

fast sync

更改概述

差异

--- 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