From 5603e9f6d1d3ff130317d6fd16332bf8b049b409 Mon Sep 17 00:00:00 2001 From: nymius <155548262+nymius@users.noreply.github.com> Date: Fri, 29 Nov 2024 12:58:40 -0300 Subject: [PATCH] test(chain): use ChangeSet instead of ChangeSet The only struct implementing rustqlite is ChangeSet from c49ea85423a20ebc29e3bf4ae3a6d2acdc78b8a5 on. --- crates/chain/src/rusqlite_impl.rs | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) 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 -- 2.49.0