Skip to content

Commit a597c70

Browse files
evanlinjinruben
authored andcommitted
test(chain): Update test docs to stop referencing get_chain_position
1 parent dcb13b9 commit a597c70

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

crates/chain/tests/test_indexed_tx_graph.rs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -525,8 +525,8 @@ fn test_list_owned_txouts() {
525525
}
526526

527527
/// Given a `LocalChain`, `IndexedTxGraph`, and a `Transaction`, when we insert some anchor
528-
/// (possibly non-canonical) and/or a last-seen timestamp into the graph, we expect the
529-
/// result of `get_chain_position` in these cases:
528+
/// (possibly non-canonical) and/or a last-seen timestamp into the graph, we check the canonical
529+
/// position of the tx:
530530
///
531531
/// - tx with no anchors or last_seen has no `ChainPosition`
532532
/// - tx with any last_seen will be `Unconfirmed`
@@ -561,9 +561,8 @@ fn test_get_chain_position() {
561561
let cp = CheckPoint::from_block_ids(blocks.clone()).unwrap();
562562
let chain = LocalChain::from_tip(cp).unwrap();
563563

564-
// The test will insert a transaction into the indexed tx graph
565-
// along with any anchors and timestamps, then check the value
566-
// returned by `get_chain_position`.
564+
// The test will insert a transaction into the indexed tx graph along with any anchors and
565+
// timestamps, then check the tx's canonical position is expected.
567566
fn run(
568567
chain: &LocalChain,
569568
graph: &mut IndexedTxGraph<BlockId, SpkTxOutIndex<u32>>,

0 commit comments

Comments
 (0)