1
1
I have noticed that, I cannot exhaust the funds in my channel to one side in lnd. I understand this makes sense so as to have some punishment in case of fraud, but I cannot find the reason for the particular value in lnd (or BOLT).
These are the steps I followed (to reproduce):
$>lncli-alice listchannels
{
"channels": [
{
"active": true,
"remote_pubkey": <bob_pubkey>,
"channel_point": <channel_point>,
"chan_id": <chan_id>,
"capacity": "16777215",
"local_balance": "370557",
"remote_balance": "16406475",
"commit_fee": "183",
"commit_weight": "724",
"fee_per_kw": "253",
"unsettled_balance": "0",
"total_satoshis_sent": "16506475",
"total_satoshis_received": "100000",
"num_updates": "300",
"pending_htlcs": [
],
"csv_delay": 2016,
"private": false
}
]
}
After adding an invoice from lncli-bob, and calling queryroutes to create the route to bob from lncli-alice with the amt values 202742 and 202743:
$>cat route_channel_alice_to_bob_amt_202742.txt | lncli-alice sendtoroute --pay_hash=pay)hash -
{
"payment_error": "unable to route payment to destination: TemporaryChannelFailure[...]",
"payment_preimage": "",
"payment_route": null
}
$>cat route_channel_alice_to_bob_amt_202743.txt | lncli-alice sendtoroute --pay_hash=<pay_hash> -
{
"payment_error": "",
"payment_preimage": <payment_preimage>,
"payment_route": {
[...]
}
}
Given that I have 370557, I do not understand why a payment of 202743 results in insuficcient funds, while 202742 does not. I would like to get to know more about the nature and exact calculation of this minimum value.
This might be helpful https://bitcoin.stackexchange.com/questions/78737/lightning-network-funds-into-channels/78757#78757
– JBaczuk – 2018-11-05T19:13:06.293