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