From: merge-script Date: Mon, 26 Oct 2026 10:17:09 +0000 (+1100) Subject: Merge bitcoindevkit/bdk#2012: Add functions to test persistence X-Git-Url: http://internal-gitweb-vhost/-script/src/example_cli/chain_graph/struct.XKeyIdentifier.html?a=commitdiff_plain;p=bdk Merge bitcoindevkit/bdk#2012: Add functions to test persistence c537631be11b731f6833c0523bd2c81699edd908 test(file_store): test `Store` persistence with `assert_persist_changesets` (codingp110) 206f9d01a40f5e4509bfcce57da219a7246727a1 test(chain): test rusqlite persistence with `assert_persist_changesets` (codingp110) 73dc5cd3815c57aa80773d48131e2f88143adc68 feat(testenv): add `persist_test_utils` for testing persistence backends (codingp110) Pull request description: ### Description Added a helper `assert_persist_changesets` to the testenv for testing custom persistence backends. Partially solves [bdk_wallet#14](https://github.com/bitcoindevkit/bdk_wallet/issues/14) and might help with [bdk_wallet#234](https://github.com/bitcoindevkit/bdk_wallet/issues/234). ### Changelog notice ``` Added - `miniscript` feature to testenv which depends on `bdk_chain/miniscript` . - `assert_persist_changesets` to testenv to check `ChangeSet`s are persisted properly. - `tx_graph_changesets`, `keychain_txout_changesets`, `local_chain_changesets` which provide changesets to be used as arguments to `assert_persist_changesets`. - `create_test_tx`, `spk_at_index`,`parse_descriptor`, `create_txout` helpers to testenv for creating changesets for testing. Changed - default feature of testenv to also activate `miniscript` feature. ``` ### Todo * [x] Add docs * [x] Add tests to bdk_chain based on testenv utilities ### Checklists #### All Submissions: * [x] I followed the [contribution guidelines](https://github.com/bitcoindevkit/bdk/blob/master/CONTRIBUTING.md) #### New Features: * [x] I've added tests for the new feature * [x] I've added docs for the new feature ACKs for top commit: evanlinjin: ACK c537631be11b731f6833c0523bd2c81699edd908 tvpeter: ACK c537631be11b731f6833c0523bd2c81699edd908 Tree-SHA512: 1560443445e40bd801635ede9ac4d8e1f95dd19249dbc61ecc170d7aeac7e1e569d0c47da08c2131526e55e7335366f5447b9338e56f91aa53d66373ea8642bb --- f2528da88b1041bdddf547d677511aea19ad3573