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
returnErr(HandleError{err:"Got shutdown_scriptpubkey of absurd length from remote peer",action:None});
2014
2014
}
2015
-
2015
+
2016
2016
//Check shutdown_scriptpubkey form as BOLT says we must
2017
2017
if !(msg.scriptpubkey.is_p2pkh())&&!(msg.scriptpubkey.is_p2sh())&&!(msg.scriptpubkey.is_v0_p2wpkh())&&!(msg.scriptpubkey.is_v0_p2wsh()){
2018
2018
returnErr(HandleError{err:"Got an invalid scriptpubkey from remote peer",action:Some(msgs::ErrorAction::DisconnectPeer{msg:None})});
@@ -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{
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?
2106
2106
returnErr(HandleError{err:"Remote tried to send us a closing tx with > 21 million BTC fee",action:None});
0 commit comments