Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[RPC] Include monotonically updating total-work-done metric in any relevant query response #9426

Closed
da2ce7 opened this issue Dec 26, 2016 · 1 comment

Comments

@da2ce7
Copy link

da2ce7 commented Dec 26, 2016

RPC responses should include a monotonically updating metric that guarantees to be correct any value equal or less-than itself.

The only monotonically updating metric in bitcoin is the 'total-work-done'. That even in the case of a reorg, must always update monotonically.

PRC responses should have a 'correct as of: (total-work-done)' metric.

Clients of the RPC can sort responses by the (total-work-done) metric to find the most current result. (say if querying a few servers at once).

@maflcko
Copy link
Member

maflcko commented Dec 23, 2018

That wouldn't work in case of reorgs. An alternative would be to increment a counter for each rpc request and/or pass the block hash of the current tip.

@maflcko maflcko closed this as completed Apr 26, 2020
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Feb 15, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants