We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent af44ec2 commit 25644acCopy full SHA for 25644ac
lightning/src/chain/channelmonitor.rs
@@ -1907,6 +1907,11 @@ impl<Signer: Sign> ChannelMonitorImpl<Signer> {
1907
// We can't build an HTLC-Success transaction without the preimage
1908
continue;
1909
}
1910
+ } else if htlc.0.cltv_expiry > self.best_block.height() + 1 {
1911
+ // Don't broadcast HTLC-Timeout transactions immediately as they dont' meet the
1912
+ // current locktime requirements on-chain. We will broadcast them when the
1913
+ // commitment transaction confirms automatically.
1914
+ continue;
1915
} else { None };
1916
if let Some(htlc_tx) = self.onchain_tx_handler.get_fully_signed_htlc_tx(
1917
&::bitcoin::OutPoint { txid, vout }, &preimage) {
0 commit comments