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

issue da2ce7 opened this issue on December 26, 2016
  1. da2ce7 commented at 7:49 AM on December 26, 2016: none

    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).

  2. fanquake added the label RPC/REST/ZMQ on Dec 26, 2016
  3. MarcoFalke added the label Brainstorming on Dec 30, 2016
  4. MarcoFalke commented at 1:04 AM on December 23, 2018: member

    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.

  5. MarcoFalke closed this on Apr 26, 2020

  6. DrahtBot locked this on Feb 15, 2022

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-13 15:15 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me