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 d129504 commit e0e7bbdCopy full SHA for e0e7bbd
lightning/src/chain/channelmonitor.rs
@@ -1906,6 +1906,11 @@ impl<Signer: Sign> ChannelMonitorImpl<Signer> {
1906
// We can't build an HTLC-Success transaction without the preimage
1907
continue;
1908
}
1909
+ } else if htlc.0.cltv_expiry > self.best_block.height() + 1 {
1910
+ // Don't broadcast HTLC-Timeout transactions immediately as they dont' meet the
1911
+ // current locktime requirements on-chain. We will broadcast them when the
1912
+ // commitment transaction confirms automatically.
1913
+ continue;
1914
} else { None };
1915
if let Some(htlc_tx) = self.onchain_tx_handler.get_fully_signed_htlc_tx(
1916
&::bitcoin::OutPoint { txid, vout }, &preimage) {
0 commit comments