From 4037a7c412d71edb30e9574174bcda2528cf0677 Mon Sep 17 00:00:00 2001 From: Paladz Date: Wed, 27 Nov 2019 18:39:28 +0800 Subject: [PATCH] try to fix network issue (#456) * try to fix network issue * try fix bug * try fix --- netsync/chainmgr/fast_sync.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netsync/chainmgr/fast_sync.go b/netsync/chainmgr/fast_sync.go index 55659873..f9e3fb63 100644 --- a/netsync/chainmgr/fast_sync.go +++ b/netsync/chainmgr/fast_sync.go @@ -152,7 +152,7 @@ func (fs *fastSync) process() error { // sync length cannot be greater than maxFastSyncBlocksNum. func (fs *fastSync) findSyncRange() (*types.Block, error) { bestHeight := fs.chain.BestBlockHeight() - length := fs.mainSyncPeer.IrreversibleHeight() - fastSyncPivotGap - bestHeight + length := fs.mainSyncPeer.Height() - fastSyncPivotGap - bestHeight if length > maxNumOfBlocksPerSync { length = maxNumOfBlocksPerSync } -- 2.11.0