File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -540,7 +540,7 @@ impl SpendableOutputDescriptor {
540
540
}
541
541
542
542
/// Returns the outpoint of the spendable output.
543
- pub fn outpoint ( & self ) -> OutPoint {
543
+ pub fn spendable_outpoint ( & self ) -> OutPoint {
544
544
match self {
545
545
Self :: StaticOutput { outpoint, .. } => * outpoint,
546
546
Self :: StaticPaymentOutput ( descriptor) => descriptor. outpoint ,
Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ impl TrackedSpendableOutput {
74
74
75
75
/// Returns whether the output is spent in the given transaction.
76
76
pub fn is_spent_in ( & self , tx : & Transaction ) -> bool {
77
- let prev_outpoint = self . descriptor . outpoint ( ) . into_bitcoin_outpoint ( ) ;
77
+ let prev_outpoint = self . descriptor . spendable_outpoint ( ) . into_bitcoin_outpoint ( ) ;
78
78
tx. input . iter ( ) . any ( |input| input. previous_output == prev_outpoint)
79
79
}
80
80
}
You can’t perform that action at this time.
0 commit comments