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

    <!--e57a25ab6845829454e8d69fc972939a-->

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

    <!--021abf342d371248e50ceaed478a90ca-->

    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. ryanofsky cross-referenced this on Mar 23, 2023 from issue refactor, kernel: Decouple ArgsManager from blockstorage by TheCharlatan
  7. furszy cross-referenced this on Mar 24, 2023 from issue wallet_create_tx.py "Not solvable pre-selected input" exception by ryanofsky
  8. fanquake requested review from theStack on Mar 28, 2023
  9. theStack approved
  10. theStack commented at 2:13 PM on March 28, 2023: contributor

    ACK 8aab5157c55249c9023ae4e9654f5d42aaa4f314

  11. fanquake merged this on Mar 28, 2023
  12. fanquake closed this on Mar 28, 2023

  13. sidhujag referenced this in commit 13a44c77a4 on Mar 28, 2023
  14. glozow cross-referenced this on Apr 3, 2023 from issue refactor (tidy): Fixes after enable-debug configure by TheCharlatan
  15. furszy deleted the branch on May 27, 2023
  16. 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: 2026-05-19 06:52 UTC