Skip to content

Commit 4525c47

Browse files
committed
f clarify error message
1 parent 3bc962a commit 4525c47

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lightning/src/ln/channel.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1084,7 +1084,7 @@ impl<Signer: Sign> Channel<Signer> {
10841084
}
10851085
let full_channel_value_msat = (msg.funding_satoshis - msg.channel_reserve_satoshis) * 1000;
10861086
if msg.push_msat > full_channel_value_msat {
1087-
return Err(ChannelError::Close(format!("push_msat {} was larger than funding value {}", msg.push_msat, full_channel_value_msat)));
1087+
return Err(ChannelError::Close(format!("push_msat {} was larger than channel amount minus reserve ({})", msg.push_msat, full_channel_value_msat)));
10881088
}
10891089
if msg.dust_limit_satoshis > msg.funding_satoshis {
10901090
return Err(ChannelError::Close(format!("dust_limit_satoshis {} was larger than funding_satoshis {}. Peer never wants payout outputs?", msg.dust_limit_satoshis, msg.funding_satoshis)));

0 commit comments

Comments
 (0)