Skip to content

Commit 35ebc72

Browse files
committed
Handle if funding transaction is in a coinbase transaction
1 parent 45eb0f3 commit 35ebc72

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lightning/src/ln/channel.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4924,6 +4924,10 @@ impl<Signer: Sign> Channel<Signer> {
49244924
self.funding_tx_confirmation_height = 0;
49254925
}
49264926

4927+
if self.funding_transaction.map(|t| t.is_coin_base()).unwrap_or(false) && funding_tx_confirmations <= 100 {
4928+
return None;
4929+
}
4930+
49274931
if funding_tx_confirmations < self.minimum_depth.unwrap_or(0) as i64 {
49284932
return None;
49294933
}

0 commit comments

Comments
 (0)