[bdk_chain_redesign] Revert changes to SparseChain

This commit is contained in:
志宇
2023-04-21 12:33:03 +08:00
parent 34a7bf5afe
commit 03c128311a
3 changed files with 47 additions and 49 deletions

View File

@@ -282,7 +282,7 @@ impl<A> TxGraph<A> {
///
/// `TxGraph` allows conflicting transactions within the graph. Obviously the transactions in
/// the returned set will never be in the same active-chain.
pub fn output_spends(&self, outpoint: OutPoint) -> &HashSet<Txid> {
pub fn outspends(&self, outpoint: OutPoint) -> &HashSet<Txid> {
self.spends.get(&outpoint).unwrap_or(&self.empty_outspends)
}