From: Alekos Filini Date: Mon, 29 Aug 2022 08:24:33 +0000 (+0200) Subject: Merge bitcoindevkit/bdk#726: [bug-fix] Set the db sync height X-Git-Tag: 0.22.0-rc.1~5 X-Git-Url: http://internal-gitweb-vhost/script/%22https:/struct.CodeLengthError.html?a=commitdiff_plain;h=2bff4e5e56fc76d7bace91258c0ff2369b0dc8ec;p=bdk Merge bitcoindevkit/bdk#726: [bug-fix] Set the db sync height 08668ac46247d527cc53af5b6f359b1fa4e3b6aa Set the db sync height (rajarshimaitra) Pull request description: ### Description Fixes #719 Previously we weren't setting the db sync height in populate_test_db macro even when current height is provided.. This creates a bug that get_funded_wallet will return 0 balance. This PR fixes the populate_test_db macro and updates tests which were previously dependent on the unsynced wallet behavior. ### Notes to the reviewers ### 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 #### Bugfixes: * [x] I've added tests to reproduce the issue which are now passing * [x] I'm linking the issue being fixed by this PR ACKs for top commit: afilini: ACK 08668ac46247d527cc53af5b6f359b1fa4e3b6aa Tree-SHA512: 1dcc968e4b3551e916b450c5ff2fab6636083f104cc982eb3f7602c624382434e0170d9f0c0a356e6c9c5f834eebe5cb1365b37ef73d7b4ef15d652a364dc2ab --- 2bff4e5e56fc76d7bace91258c0ff2369b0dc8ec