Advertise "known block" count between peers and show in UI. #365

issue amcgregor opened this issue on June 29, 2011
  1. amcgregor commented at 5:23 PM on June 29, 2011: none

    Howdy!

    When connecting to peers, and periodically as data is moved around, the number of known blocks should be advertised, then the maximal response between currently connected peers shown as an estimate of the expected block count. This would be especially useful for new users to clearly and quickly identify when they have finished their initial local block cache building.

    — Alice.

  2. gmaxwell commented at 5:35 PM on June 29, 2011: contributor

    It already exchanges this information.

    version message: version 32100, blocks=133643

    Maximum is a silly statistic however, since it just takes one silly node to claim an outrageously high value and cause a lot of confusion.

  3. amcgregor commented at 6:44 PM on June 29, 2011: none

    You can ignore values outside of a few standard deviations of the known values exchanged by other peers, which should eliminate fraudulent outliers. The key to this ticket is to show that shared block count value somewhere in the UI.

  4. joric commented at 7:50 PM on July 4, 2011: none

    Poor man's patch http://pastebin.com/ESurLrrL

  5. laanwj commented at 6:41 PM on December 3, 2011: member

    This was implemented with the bitcoin-qt merge (including a median filter to make sure one fraudulent node doesn't mess up things), closing the issue

  6. laanwj closed this on Dec 3, 2011

  7. zathras-crypto referenced this in commit 4117174643 on May 3, 2016
  8. classesjack referenced this in commit 2d0f487751 on Jan 2, 2018
  9. lateminer referenced this in commit d243de6db1 on Oct 16, 2019
  10. laanwj referenced this in commit b586bbd558 on Nov 6, 2019
  11. laanwj referenced this in commit 97b66d34eb on Nov 7, 2019
  12. laanwj referenced this in commit e9c85bb139 on Nov 7, 2019
  13. laanwj referenced this in commit c92f7af618 on Nov 7, 2019
  14. laanwj referenced this in commit 656712fe94 on Dec 9, 2019
  15. laanwj referenced this in commit 4abd92d5c4 on Dec 12, 2019
  16. laanwj referenced this in commit 89c8fe5189 on Jan 2, 2020
  17. laanwj referenced this in commit 66480821b3 on Jan 28, 2020
  18. rajarshimaitra referenced this in commit 016a5bd72d on Aug 5, 2021
  19. DrahtBot locked this on Sep 8, 2021

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-05-02 12:16 UTC

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