Skip to content

Commit 54b70fa

Browse files
committed
Slightly clarify the closing_signed error msg on fee mismatch
1 parent dc0f460 commit 54b70fa

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
@@ -3631,7 +3631,7 @@ impl<Signer: Sign> Channel<Signer> {
36313631
let funding_redeemscript = self.get_funding_redeemscript();
36323632
let (mut closing_tx, used_total_fee) = self.build_closing_transaction(msg.fee_satoshis, false);
36333633
if used_total_fee != msg.fee_satoshis {
3634-
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)));
3634+
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)));
36353635
}
36363636
let mut sighash = hash_to_message!(&bip143::SigHashCache::new(&closing_tx).signature_hash(0, &funding_redeemscript, self.channel_value_satoshis, SigHashType::All)[..]);
36373637

0 commit comments

Comments
 (0)