You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, sync/service.go and initial-sync/service.go determines the sync status of the node (in relation to the network) by calling db.HasStoredState().
db.HasStoredState() only determines whether or not the local database has been initialized, not whether or not the local chain is caught up with the current chain. Therefore, we should replace HasStoredState with a new method IsSynced which surveys peers in the network.
The text was updated successfully, but these errors were encountered:
rawfalafel
changed the title
Implement "HasSynced" method to determine sync status of node
Implement "IsSynced" method to determine sync status of node
Oct 15, 2018
As a first step, I'm going to open up a preliminary PR to replaced db.HasStoredState with a stub for IsSynced. Merging that PR will allow #426 and #555 to be closed out.
Currently,
sync/service.go
andinitial-sync/service.go
determines the sync status of the node (in relation to the network) by callingdb.HasStoredState()
.db.HasStoredState()
only determines whether or not the local database has been initialized, not whether or not the local chain is caught up with the current chain. Therefore, we should replaceHasStoredState
with a new methodIsSynced
which surveys peers in the network.The text was updated successfully, but these errors were encountered: