Tests: add timeout to sync_blocks() and sync_mempools() #8104

pull sdaftuar wants to merge 1 commits into bitcoin:master from sdaftuar:improve-rpc-sync changing 1 files +13 −9
  1. sdaftuar commented at 6:40 PM on May 26, 2016: member

    Previously these functions would infinitely loop if sync failed; now they have a default timeout of 60 seconds, after which an AssertionError is raised.

    sync_blocks() has also been improved and now compares the tip hash of each node, rather than just using block count.

  2. Tests: add timeout to sync_blocks() and sync_mempools()
    Previously these functions would infinitely loop if sync failed;
    now they have a default timeout of 60 seconds, after which an
    AssertionError is raised.
    
    sync_blocks() has also been improved and now compares the tip
    hash of each node, rather than just using block count.
    e871f8338a
  3. MarcoFalke commented at 6:47 PM on May 26, 2016: member

    Thanks! Concept ACK.

  4. sipa commented at 10:25 PM on May 26, 2016: member

    utACK e871f8338ad180428ff997b80a476d9719d8073f

  5. jonasschnelli commented at 12:45 PM on May 27, 2016: contributor

    utACK e871f8338ad180428ff997b80a476d9719d8073f

  6. MarcoFalke merged this on May 29, 2016
  7. MarcoFalke closed this on May 29, 2016

  8. MarcoFalke referenced this in commit 6ff2c8d29f on May 29, 2016
  9. laanwj commented at 7:19 AM on May 30, 2016: member

    sync_blocks() has also been improved and now compares the tiphash of each node

    Good idea

  10. codablock referenced this in commit 0a2850d44f on Sep 16, 2017
  11. codablock referenced this in commit a5305dab31 on Sep 19, 2017
  12. codablock referenced this in commit 0027292ac6 on Dec 21, 2017
  13. andvgal referenced this in commit 6d7d007cd2 on Jan 6, 2019
  14. zkbot referenced this in commit 025bd44543 on Nov 21, 2020
  15. zkbot referenced this in commit 7a0a268054 on Dec 2, 2020
  16. zkbot referenced this in commit c8896f9907 on Dec 2, 2020
  17. MarcoFalke 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-04-14 12:16 UTC

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