This PR introduces a new field to SyncStatus that lets implementations return a boolean indicating if they are fully synced. This field is particularly useful for quiescent blockchains (blocks only produced when there are pending transactions). In these blockchains, the most recent block could have a timestamp far behind the current time but the node could be at tip.
Changes
[x] Add new synced field to SyncStatus
[x] Add more context around why SyncStatus.current_index exists
This PR introduces a new field to
SyncStatus
that lets implementations return a boolean indicating if they are fully synced. This field is particularly useful for quiescent blockchains (blocks only produced when there are pending transactions). In these blockchains, the most recent block could have a timestamp far behind the current time but the node could be at tip.Changes
synced
field toSyncStatus
SyncStatus.current_index
exists