I got a bit confused. Also, answering your question, I mixed up a bit by indicating the wrong type of error. But generally, when a payment cannot be sent further because, for example, we don't have enough balance on our side to send it further, an onion is also sent, which indicates a temporary error code, and the onion is also sent back to the sender. From it, they can see which node along the way sent it, so they don't send the same-sized payment through the same channel again.
Actually, I was talking in the context that instead of specifically regulating fees in channels that are drained, you can just rely on such packets to be sent to the sender if the payment cannot go through due to insufficient liquidity. And if there is still enough liquidity to make the payment, even if it's small, let such a payment go through at a fixed rate that was there at any balance of our channel. I hope I expressed myself more clearly.
Login to reply
Replies (2)
You wrote....
"you can just rely on such packets to be sent to the sender if the payment cannot go through due to insufficient liquidity"
.... Right -- "temporary_channel_failure" -- here
.
The issue is that hitting failures like this has the effect of increasing payment latency for users, and also, if there are too many failures, the payment will time out entirely. Shouldn't we, for the sake of users, be trying to insulate payers from potential failures?
And ....isn't a good way to do THAT is to simply signal to the network "hey, don't use this channel in this direction, I'm signaling this by putting my fees high"..... ?
GitHub
bolts/04-onion-routing.md at 2b9c73b48c1920df8e7e867d110fab2d720a059b · lightning/bolts
BOLT: Basis of Lightning Technology (Lightning Network Specifications) - lightning/bolts
Sorry that was the incorrect deeplink to the Bolts.. here is where I intended:
" - if during forwarding to its receiving peer, an otherwise unspecified,
transient error occurs in the outgoing channel (e.g. channel capacity reached,
too many in-flight HTLCs, etc.):
- return a `temporary_channel_failure` error."

GitHub
bolts/04-onion-routing.md at 2b9c73b48c1920df8e7e867d110fab2d720a059b · lightning/bolts
BOLT: Basis of Lightning Technology (Lightning Network Specifications) - lightning/bolts