Skip to content

Commit 5603e9f

Browse files
committed
test(chain): use ChangeSet<ConfirmationBlockTime> instead of ChangeSet<BlockId>
The only struct implementing rustqlite is ChangeSet<ConfirmationBlockTime> from c49ea85 on.
1 parent c3ea54d commit 5603e9f

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

crates/chain/src/rusqlite_impl.rs

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -549,7 +549,7 @@ mod test {
549549

550550
#[test]
551551
fn can_persist_anchors_and_txs_independently() -> anyhow::Result<()> {
552-
type ChangeSet = tx_graph::ChangeSet<BlockId>;
552+
type ChangeSet = tx_graph::ChangeSet<ConfirmationBlockTime>;
553553
let mut conn = rusqlite::Connection::open_in_memory()?;
554554

555555
// init tables
@@ -567,9 +567,12 @@ mod test {
567567
};
568568
let tx = Arc::new(tx);
569569
let txid = tx.compute_txid();
570-
let anchor = BlockId {
571-
height: 21,
572-
hash: hash!("anchor"),
570+
let anchor = ConfirmationBlockTime {
571+
block_id: BlockId {
572+
height: 21,
573+
hash: hash!("anchor"),
574+
},
575+
confirmation_time: 1342,
573576
};
574577

575578
// First persist the anchor

0 commit comments

Comments
 (0)