Flipper test in qa/rpc-tests/wallet.sh #3445

issue laanwj opened this issue on December 19, 2013
  1. laanwj commented at 9:29 AM on December 19, 2013: member

    (from discussion in #3346) Heavy system load can cause an error in the wallet test.

    + /mnt/bitcoin/qa/rpc-tests/wallet.sh /mnt/bitcoin/linux-build/src
    bad balance: 21.00000000 (expected 100)
    

    Probably it happens here: https://github.com/bitcoin/bitcoin/blob/master/qa/rpc-tests/wallet.sh#L84

    The test does a fixed wait for 1 second to give the block time to relay, but this may not always be enough in the case of heavy load.

    Simple (but unreliable and slow) solution would be to increase the timeout, a more thorough solution would be to provide a way to wait for block propagation.

  2. laanwj commented at 3:45 PM on December 20, 2013: member

    I managed to reproduce this problem locally. The problem is indeed in propagation:

    B1: 204 blocks
    B2: 204 blocks
    B3: 203 blocks
    

    I'm going to add a function WaitBlocks that waits until all three nodes have the same amount of blocks, and replace that for the sleep 1s.

  3. sipa commented at 3:49 PM on December 20, 2013: member

    ACK

  4. laanwj referenced this in commit 5fe19d640e on Dec 20, 2013
  5. laanwj closed this on Dec 21, 2013

  6. MathyV referenced this in commit 264a28c097 on Aug 5, 2014
  7. 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-13 15:16 UTC

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