ethersphere / bee

Bee is a Swarm client implemented in Go. It’s the basic building block for the Swarm network: a private; decentralized; and self-sustaining network for permissionless publishing and access to your (application) data.
https://www.ethswarm.org
BSD 3-Clause "New" or "Revised" License
1.46k stars 338 forks source link

feat: track postage batch sync level using api call #2872

Closed significance closed 2 years ago

significance commented 2 years ago

Summary

allow Bee to start apis but wait to connect to the network then implement endpoint to allow users to track the progress of postage batch sync without having to resort to excessively verbose logs this endpoint should also indicate whether the batches are currently synced

Motivation

to track the postage batch sync using api endpoints and allow reporting of this information in bee-desktop / swarm-cli

agazso commented 2 years ago

The idea is that we can expose the tip of the syncing in the /chainstate endpoint and using that and the already exposed block property, the client application can show the progress.