diff --git a/.gitmodules b/.gitmodules index e4c89a194..c319c0582 100644 --- a/.gitmodules +++ b/.gitmodules @@ -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 + diff --git a/beacon_chain/spec/eth2_apis/callsigs_types.nim b/beacon_chain/spec/eth2_apis/callsigs_types.nim index 36e2b0ebc..73c66584f 100644 --- a/beacon_chain/spec/eth2_apis/callsigs_types.nim +++ b/beacon_chain/spec/eth2_apis/callsigs_types.nim @@ -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 diff --git a/beacon_chain/sync/sync_manager.nim b/beacon_chain/sync/sync_manager.nim index 62da2c087..dec9bdce2 100644 --- a/beacon_chain/sync/sync_manager.nim +++ b/beacon_chain/sync/sync_manager.nim @@ -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) diff --git a/vendor/nim-http-utils b/vendor/nim-http-utils index 1639ac790..613ad40f0 160000 --- a/vendor/nim-http-utils +++ b/vendor/nim-http-utils @@ -1 +1 @@ -Subproject commit 1639ac79035c291688174a2037f7d695aa3ff6f3 +Subproject commit 613ad40f00ab3d0ee839f9db9c4d25e5e0248dee