You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/ln/channel.rs
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -2102,7 +2102,7 @@ impl Channel {
2102
2102
if !self.pending_inbound_htlcs.is_empty() || !self.pending_outbound_htlcs.is_empty(){
2103
2103
returnErr(HandleError{err:"Remote end sent us a closing_signed while there were still pending HTLCs",action:None});
2104
2104
}
2105
-
if msg.fee_satoshis > 21000000*10000000{//is this test required? We check for a much lower amount below, thus if that one will fail, this one will always fail?
2105
+
if msg.fee_satoshis > 21000000*10000000{//this is required to stop potential overflow in build_closing_transaction
2106
2106
returnErr(HandleError{err:"Remote tried to send us a closing tx with > 21 million BTC fee",action:None});
0 commit comments