]> git.bitcoin.ninja Git - rust-lightning/commitdiff
Slightly clarify the closing_signed error msg on fee mismatch
authorMatt Corallo <git@bluematt.me>
Fri, 13 Aug 2021 18:46:50 +0000 (18:46 +0000)
committerMatt Corallo <git@bluematt.me>
Tue, 17 Aug 2021 02:16:01 +0000 (02:16 +0000)
lightning/src/ln/channel.rs

index 2440b64c7f80c3005f259bc3eb113cf0baa8bda5..03968118a16a59aa481cd148a81309f30cfdcc95 100644 (file)
@@ -3635,7 +3635,7 @@ impl<Signer: Sign> Channel<Signer> {
                let funding_redeemscript = self.get_funding_redeemscript();
                let (mut closing_tx, used_total_fee) = self.build_closing_transaction(msg.fee_satoshis, false);
                if used_total_fee != msg.fee_satoshis {
-                       return Err(ChannelError::Close(format!("Remote sent us a closing_signed with a fee greater than the value they can claim. Fee in message: {}", msg.fee_satoshis)));
+                       return Err(ChannelError::Close(format!("Remote sent us a closing_signed with a fee other than the value they can claim. Fee in message: {}. Actual closing tx fee: {}", msg.fee_satoshis, used_total_fee)));
                }
                let mut sighash = hash_to_message!(&bip143::SigHashCache::new(&closing_tx).signature_hash(0, &funding_redeemscript, self.channel_value_satoshis, SigHashType::All)[..]);