Skip to content

Commit 0b481e9

Browse files
committed
Slightly clarify the closing_signed error msg on fee mismatch
1 parent dcb0832 commit 0b481e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lightning/src/ln/channel.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3635,7 +3635,7 @@ impl<Signer: Sign> Channel<Signer> {
36353635
let funding_redeemscript = self.get_funding_redeemscript();
36363636
let (mut closing_tx, used_total_fee) = self.build_closing_transaction(msg.fee_satoshis, false);
36373637
if used_total_fee != msg.fee_satoshis {
3638-
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)));
3638+
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)));
36393639
}
36403640
let mut sighash = hash_to_message!(&bip143::SigHashCache::new(&closing_tx).signature_hash(0, &funding_redeemscript, self.channel_value_satoshis, SigHashType::All)[..]);
36413641

0 commit comments

Comments
 (0)