Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
optout21 committed Nov 17, 2023
2 parents e957eaa + c0784b6 commit 06c8746
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lightning/src/ln/channel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -686,8 +686,8 @@ impl UnfundedChannelContext {
}
}

#[derive(Default)]
/// Info about a transaction and its confirmation status, used mainly for funding transactions.
#[derive(Default)]
struct TransactionConfirmation {
/// The transaction, or None.
transaction: Option<Transaction>,
Expand All @@ -700,7 +700,7 @@ struct TransactionConfirmation {
/// Confirmation depth: height relative to a current height.
#[derive(Debug, PartialEq)]
enum RelativeConfirmationDepth {
/// If fhere is no confirmation height (it was not confirmed, or confirmed and reorged).
/// If fhere is no confirmation height (it was not confirmed, or confirmed then reorg'd).
Unconfirmed,
/// Confirmed by N blokcks, current_height - confirmation_height + 1; a number always larger than 0.
Confirmed(u32),
Expand Down Expand Up @@ -4997,8 +4997,8 @@ impl<SP: Deref> Channel<SP> where

let confirmation_depth = self.context.funding_tx_confirmation.confirmation_depth(height);
if confirmation_depth == RelativeConfirmationDepth::ConfirmedInFuture {
// reset to unconfirmed
self.context.funding_tx_confirmation.confirmation_height = 0;
// reset to unconfirmed
self.context.funding_tx_confirmation.confirmation_height = 0;
}
if !confirmation_depth.is_confirmed_for(self.context.minimum_depth) {
return None;
Expand Down

0 comments on commit 06c8746

Please sign in to comment.