pub trait GetSpendingTx {
// Required method
fn get_spending_tx(&self, outpoint: OutPoint) -> Option<Arc<Transaction>>;
}Expand description
Ability to find wallet-local spends of a specific OutPoint.
This helps identify if the wallet has already spent an exit or parent Transaction.
Required Methods§
Sourcefn get_spending_tx(&self, outpoint: OutPoint) -> Option<Arc<Transaction>>
fn get_spending_tx(&self, outpoint: OutPoint) -> Option<Arc<Transaction>>
This should search the wallet and look for any Transaction that spends the given OutPoint. The intent of the function is to only look at spends which happen in the wallet itself.