Fix sync_manager.nim to return proper status.

Bump REST API dependencies.
This commit is contained in:
cheatfate 2021-03-17 19:49:07 +02:00 committed by zah
parent 79bb0d5379
commit c4d891f583
4 changed files with 13 additions and 5 deletions

6
.gitmodules vendored
View File

@ -208,3 +208,9 @@
url = https://github.com/status-im/nim-unittest2.git url = https://github.com/status-im/nim-unittest2.git
ignore = untracked ignore = untracked
branch = master branch = master
[submodule "vendor/nim-presto"]
path = vendor/nim-presto
url = https://github.com/status-im/nim-presto.git
ignore = untracked
branch = master

View File

@ -74,6 +74,7 @@ type
index: uint64 index: uint64
balance: uint64 balance: uint64
SyncInfo* = object SyncInfo* = tuple
head_slot*: Slot head_slot: Slot
sync_distance*: int64 sync_distance: int64
is_syncing: bool

View File

@ -1150,4 +1150,5 @@ proc getInfo*[A, B](man: SyncManager[A, B]): SyncInfo =
let sync_distance = wallSlot - headSlot let sync_distance = wallSlot - headSlot
doAssert sync_distance <= high(int64).uint64 doAssert sync_distance <= high(int64).uint64
SyncInfo(head_slot: headSlot, sync_distance: int64(sync_distance)) SyncInfo(head_slot: headSlot, sync_distance: int64(sync_distance),
is_syncing: man.inProgress)

@ -1 +1 @@
Subproject commit 1639ac79035c291688174a2037f7d695aa3ff6f3 Subproject commit 613ad40f00ab3d0ee839f9db9c4d25e5e0248dee