Skip to content

Commit

Permalink
Updates spent_utxos() method documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
arya2 committed Nov 5, 2024
1 parent d8534c2 commit 257567b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion zebra-consensus/src/transaction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -608,11 +608,15 @@ where
}
}

/// Wait for the UTXOs that are being spent by the given transaction.
/// Waits for the UTXOs that are being spent by the given transaction to arrive in
/// the state for [`Block`](Request::Block) requests.
///
/// `known_utxos` are additional UTXOs known at the time of validation (i.e.
/// from previous transactions in the block).
///
/// Looks up UTXOs that are being spent by the given transaction in the state or waits
/// for them to be added to the mempool for [`Mempool`](Request::Mempool) requests.
///
/// Returns a tuple with a OutPoint -> Utxo map, and a vector of Outputs
/// in the same order as the matching inputs in the transaction.
async fn spent_utxos(
Expand Down

0 comments on commit 257567b

Please sign in to comment.