From: Matt Corallo Date: Fri, 13 Aug 2021 18:46:50 +0000 (+0000) Subject: Slightly clarify the closing_signed error msg on fee mismatch X-Git-Tag: v0.0.100~1^2~1 X-Git-Url: http://git.bitcoin.ninja/index.cgi?p=rust-lightning;a=commitdiff_plain;h=0b481e91d5a1832665f2b76799c9d177db010128 Slightly clarify the closing_signed error msg on fee mismatch --- diff --git a/lightning/src/ln/channel.rs b/lightning/src/ln/channel.rs index 2440b64c..03968118 100644 --- a/lightning/src/ln/channel.rs +++ b/lightning/src/ln/channel.rs @@ -3635,7 +3635,7 @@ impl Channel { 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)[..]);