]> Untitled Git - bdk/commitdiff
Merge bitcoindevkit/bdk#1535: test(electrum): Test sync in reorg and no-reorg situations
author志宇 <hello@evanlinjin.me>
Mon, 12 Aug 2024 09:51:51 +0000 (09:51 +0000)
committer志宇 <hello@evanlinjin.me>
Mon, 12 Aug 2024 09:52:35 +0000 (09:52 +0000)
2c0bc45ecf0241abc8bf9d72c8bbeded53d32a45 feat(testenv): Added `bdk_electrum` wait for Txid method (Wei Chen)
49e1a5e871de31e87cc9a4d329cd2b1477f32fd0 test(electrum): Test sync in reorg and no-reorg situations (Wei Chen)

Pull request description:

  <!-- You can erase any parts of this template not applicable to your Pull Request. -->
  Closes #1125.

  ### Description

  <!-- Describe the purpose of this PR, what's being adding and/or fixed -->
  Add new test for `bdk_electrum` to make sure previously unconfirmed transactions get confirmed again in both reorg and no-reorg situations.

  ### Changelog notice

  <!-- Notice the release manager should include in the release tag message changelog -->
  <!-- See https://keepachangelog.com/en/1.0.0/ for examples -->
  * Added `wait_until_electrum_sees_txid` method to `TestEnv`.
  * `wait_until_electrum_sees_block` now has a `Duration` input for timeout.
  * Removed exponential polling delay in `wait_until_electrum_sees_block`.
  * Added `test_sync` to `bdk_electrum` to make sure previously unconfirmed transactions get confirmed in both reorg and no-org situations.

  ### Checklists

  #### All Submissions:

  * [x] I've signed all my commits
  * [x] I followed the [contribution guidelines](https://github.com/bitcoindevkit/bdk/blob/master/CONTRIBUTING.md)
  * [x] I ran `cargo fmt` and `cargo clippy` before committing

ACKs for top commit:
  evanlinjin:
    ACK 2c0bc45ecf0241abc8bf9d72c8bbeded53d32a45

Tree-SHA512: 2218151267fe0a3dc3eefa1e7081902e25193f211b2624a3a9f2007b9b38eefb5b847754b9f8cbefba6be6a497cfbc85ac3e5a2db40f01fcc71a3c9d8427adf4

1  2 
crates/testenv/src/lib.rs

Simple merge