mirror of
https://github.com/status-im/nimbus-eth2.git
synced 2025-01-21 20:10:36 +00:00
Fix sync_manager.nim to return proper status.
Bump REST API dependencies.
This commit is contained in:
parent
79bb0d5379
commit
c4d891f583
6
.gitmodules
vendored
6
.gitmodules
vendored
@ -208,3 +208,9 @@
|
||||
url = https://github.com/status-im/nim-unittest2.git
|
||||
ignore = untracked
|
||||
branch = master
|
||||
[submodule "vendor/nim-presto"]
|
||||
path = vendor/nim-presto
|
||||
url = https://github.com/status-im/nim-presto.git
|
||||
ignore = untracked
|
||||
branch = master
|
||||
|
||||
|
@ -74,6 +74,7 @@ type
|
||||
index: uint64
|
||||
balance: uint64
|
||||
|
||||
SyncInfo* = object
|
||||
head_slot*: Slot
|
||||
sync_distance*: int64
|
||||
SyncInfo* = tuple
|
||||
head_slot: Slot
|
||||
sync_distance: int64
|
||||
is_syncing: bool
|
||||
|
@ -1150,4 +1150,5 @@ proc getInfo*[A, B](man: SyncManager[A, B]): SyncInfo =
|
||||
let sync_distance = wallSlot - headSlot
|
||||
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)
|
||||
|
2
vendor/nim-http-utils
vendored
2
vendor/nim-http-utils
vendored
@ -1 +1 @@
|
||||
Subproject commit 1639ac79035c291688174a2037f7d695aa3ff6f3
|
||||
Subproject commit 613ad40f00ab3d0ee839f9db9c4d25e5e0248dee
|
Loading…
x
Reference in New Issue
Block a user