OSDN Git Service
(root)
/
bytom
/
vapor.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5f3bb97
)
try to fix network issue (#456)
author
Paladz
<yzhu101@uottawa.ca>
Wed, 27 Nov 2019 10:39:28 +0000
(18:39 +0800)
committer
GitHub
<noreply@github.com>
Wed, 27 Nov 2019 10:39:28 +0000
(18:39 +0800)
* try to fix network issue
* try fix bug
* try fix
netsync/chainmgr/fast_sync.go
patch
|
blob
|
history
diff --git
a/netsync/chainmgr/fast_sync.go
b/netsync/chainmgr/fast_sync.go
index
5565987
..
f9e3fb6
100644
(file)
--- 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.
Irreversible
Height() - fastSyncPivotGap - bestHeight
+ length := fs.mainSyncPeer.Height() - fastSyncPivotGap - bestHeight
if length > maxNumOfBlocksPerSync {
length = maxNumOfBlocksPerSync
}