Skip to content

Commit

Permalink
Merge pull request #3634 from TheBlueMatt/2025-03-meth-field-alias
Browse files Browse the repository at this point in the history
Rename `SpendableOutputDescriptor::outpoint()`
  • Loading branch information
tnull authored Mar 3, 2025
2 parents 36ba27a + 74018b0 commit 47cb737
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lightning/src/sign/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,7 @@ impl SpendableOutputDescriptor {
}

/// Returns the outpoint of the spendable output.
pub fn outpoint(&self) -> OutPoint {
pub fn spendable_outpoint(&self) -> OutPoint {
match self {
Self::StaticOutput { outpoint, .. } => *outpoint,
Self::StaticPaymentOutput(descriptor) => descriptor.outpoint,
Expand Down
2 changes: 1 addition & 1 deletion lightning/src/util/sweep.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ impl TrackedSpendableOutput {

/// Returns whether the output is spent in the given transaction.
pub fn is_spent_in(&self, tx: &Transaction) -> bool {
let prev_outpoint = self.descriptor.outpoint().into_bitcoin_outpoint();
let prev_outpoint = self.descriptor.spendable_outpoint().into_bitcoin_outpoint();
tx.input.iter().any(|input| input.previous_output == prev_outpoint)
}
}
Expand Down

0 comments on commit 47cb737

Please sign in to comment.