From: nymius <155548262+nymius@users.noreply.github.com> Date: Fri, 29 Nov 2024 15:58:40 +0000 (-0300) Subject: test(chain): use ChangeSet instead of ChangeSet X-Git-Tag: v1.0.0-beta.6~3^2~4 X-Git-Url: http://internal-gitweb-vhost/script/%22https:/database/scripts/struct.ParseHeightError.html?a=commitdiff_plain;h=5603e9f6d1d3ff130317d6fd16332bf8b049b409;p=bdk test(chain): use ChangeSet instead of ChangeSet The only struct implementing rustqlite is ChangeSet from c49ea85423a20ebc29e3bf4ae3a6d2acdc78b8a5 on. --- diff --git a/crates/chain/src/rusqlite_impl.rs b/crates/chain/src/rusqlite_impl.rs index f3abca0f..346cee79 100644 --- a/crates/chain/src/rusqlite_impl.rs +++ b/crates/chain/src/rusqlite_impl.rs @@ -549,7 +549,7 @@ mod test { #[test] fn can_persist_anchors_and_txs_independently() -> anyhow::Result<()> { - type ChangeSet = tx_graph::ChangeSet; + type ChangeSet = tx_graph::ChangeSet; let mut conn = rusqlite::Connection::open_in_memory()?; // init tables @@ -567,9 +567,12 @@ mod test { }; let tx = Arc::new(tx); let txid = tx.compute_txid(); - let anchor = BlockId { - height: 21, - hash: hash!("anchor"), + let anchor = ConfirmationBlockTime { + block_id: BlockId { + height: 21, + hash: hash!("anchor"), + }, + confirmation_time: 1342, }; // First persist the anchor