test: wallet_create_tx.py fix race #27318

pull furszy wants to merge 1 commits into bitcoin:master from furszy:2022_walletcreatetx_fix_race changing 1 files +1 −0
  1. furszy commented at 7:48 pm on March 23, 2023: member

    Fixes #27316

    Because wallets are internally synchronized through the validation interface, and the interface dispatches events on a worker thread, it is possible for a transaction created by the first wallet to not arrive to the second wallet before the second wallet attempts to use one of its outputs. This is because we do not wait for the BroadcastTransaction callback during the wallet’s “submit to mempool” process. To address this in the tests, we need to manually sync the validation queue.

  2. DrahtBot commented at 7:48 pm on March 23, 2023: contributor

    The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

    Reviews

    See the guideline for information on the review process.

    Type Reviewers
    ACK josibake, theStack

    If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update.

  3. DrahtBot added the label Tests on Mar 23, 2023
  4. test: wallet_create_tx.py fix race
    Because wallets are internally synchronized
    through the validation interface, and the
    interface dispatches events on a worker thread,
    it is possible for a transaction created by the
    first wallet to not arrive at the second wallet
    before the second wallet attempts to use one of
    its outputs. This is because we do not wait for
    the BroadcastTransaction callback during the wallet's
    "submit to mempool" process. To address this in the
    tests, we need to sync the validation queue.
    8aab5157c5
  5. furszy force-pushed on Mar 23, 2023
  6. fanquake requested review from theStack on Mar 28, 2023
  7. theStack approved
  8. theStack commented at 2:13 pm on March 28, 2023: contributor
    ACK 8aab5157c55249c9023ae4e9654f5d42aaa4f314
  9. fanquake merged this on Mar 28, 2023
  10. fanquake closed this on Mar 28, 2023

  11. sidhujag referenced this in commit 13a44c77a4 on Mar 28, 2023
  12. furszy deleted the branch on May 27, 2023
  13. bitcoin locked this on May 26, 2024

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: 2024-11-24 06:12 UTC

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