From: 志宇 Date: Mon, 12 Aug 2024 09:51:51 +0000 (+0000) Subject: Merge bitcoindevkit/bdk#1535: test(electrum): Test sync in reorg and no-reorg situations X-Git-Tag: v1.0.0-beta.2~14 X-Git-Url: http://internal-gitweb-vhost/script/%22https:/database/scripts/struct.CommandStringError.html?a=commitdiff_plain;h=caef3f476b533aa11cee2eac45eb0c16a1a0f1e9;p=bdk Merge bitcoindevkit/bdk#1535: test(electrum): Test sync in reorg and no-reorg situations 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: Closes #1125. ### Description Add new test for `bdk_electrum` to make sure previously unconfirmed transactions get confirmed again in both reorg and no-reorg situations. ### Changelog notice * 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 --- caef3f476b533aa11cee2eac45eb0c16a1a0f1e9