@@ -1769,30 +1769,18 @@ impl<ChanSigner: ChannelKeys> ChannelMonitor<ChanSigner> {
1769
1769
// HTLCs set may differ between last and previous local commitment txn, in case of one them hitting chain, ensure we cancel all HTLCs backward
1770
1770
let mut is_local_tx = false ;
1771
1771
1772
- if let & mut Some ( ref mut local_tx) = & mut self . current_local_signed_commitment_tx {
1773
- if local_tx. txid == commitment_txid {
1774
- local_tx. tx . add_local_sig ( & self . onchain_detection . funding_key , self . funding_redeemscript . as_ref ( ) . unwrap ( ) , self . channel_value_satoshis . unwrap ( ) , & self . secp_ctx ) ;
1775
- }
1776
- }
1777
1772
if let & Some ( ref local_tx) = & self . current_local_signed_commitment_tx {
1778
1773
if local_tx. txid == commitment_txid {
1779
1774
is_local_tx = true ;
1780
1775
log_trace ! ( self , "Got latest local commitment tx broadcast, searching for available HTLCs to claim" ) ;
1781
- assert ! ( local_tx. tx. has_local_sig( ) ) ;
1782
1776
let mut res = self . broadcast_by_local_state ( local_tx, & self . onchain_detection . delayed_payment_base_key ) ;
1783
1777
append_onchain_update ! ( res) ;
1784
1778
}
1785
1779
}
1786
- if let & mut Some ( ref mut local_tx) = & mut self . prev_local_signed_commitment_tx {
1787
- if local_tx. txid == commitment_txid {
1788
- local_tx. tx . add_local_sig ( & self . onchain_detection . funding_key , self . funding_redeemscript . as_ref ( ) . unwrap ( ) , self . channel_value_satoshis . unwrap ( ) , & self . secp_ctx ) ;
1789
- }
1790
- }
1791
1780
if let & Some ( ref local_tx) = & self . prev_local_signed_commitment_tx {
1792
1781
if local_tx. txid == commitment_txid {
1793
1782
is_local_tx = true ;
1794
1783
log_trace ! ( self , "Got previous local commitment tx broadcast, searching for available HTLCs to claim" ) ;
1795
- assert ! ( local_tx. tx. has_local_sig( ) ) ;
1796
1784
let mut res = self . broadcast_by_local_state ( local_tx, & self . onchain_detection . delayed_payment_base_key ) ;
1797
1785
append_onchain_update ! ( res) ;
1798
1786
}
0 commit comments