Skip to content

Commit

Permalink
test(chain): Update test docs to stop referencing get_chain_position
Browse files Browse the repository at this point in the history
  • Loading branch information
evanlinjin committed Dec 10, 2024
1 parent 1508ae3 commit 956d0a9
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions crates/chain/tests/test_indexed_tx_graph.rs
Original file line number Diff line number Diff line change
Expand Up @@ -525,8 +525,8 @@ fn test_list_owned_txouts() {
}

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

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

0 comments on commit 956d0a9

Please sign in to comment.