Feature request: way to get sync progress from API #745
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
It would be nice if there were a way to get some rough measure of sync progress via the API. Something like: 1) the number of total cached messages visible on connected nodes and 2) number of cached messages on local node. This way clients could poll it to display sync progress to the user. Otherwise, they think it's broken and see no reason to leave the app open while it syncs.
This sounds interesting.
Right now I just show # of messages processed, which at least let's users see that it's doing something. What I'd really like to show is: "number of messages other nodes have told me about but I don't have yet".
Yes that's how I understood it too. I think it would be helpful to see the progress status and I also think it is doable.
Do you want this shown in the UI, exposed to the API calls or both?
In the API. We've written our own Bitmessage UI app called Bitpost: https://voluntary.net/bitpost/
We may be doing a JS port next year and moving to the JS implementation of Bitmessage.
Look at the latest two commits in my fork (
53062f61b9
andf933cea697
) for guidelines how to write the API change yourself. The commits expose the number of unsynced objects to the GUI in the network tab. I don't plan on making the API change myself before 0.6, but I can merge a commit if you want to do it.