ZmnSCPxj [ARCHIVE] on Nostr: π
Original date posted:2019-03-31 π Original message: Good morning Ariel, > > A ...
π
Original date posted:2019-03-31
π Original message:
Good morning Ariel,
> > A good pruning heuristic is "channel capacity", which can be checked onchain (the value of the UTXO backing the channel is the channel capacity).
> > It is good to keep channels with large capacity in the routemap, because such large channels are more likely to successfully route a payment than smaller channels.
> > So it is reasonable to delete channels with low capacity when the routemap memory is becoming close to full.
>
> I'm generally concerned about these heuristics because any time nodes
> can game a heuristic they will be expected to do so.
> Gaming a heuristic can be good or bad depending on the side-effects.
> One side effect of the "channel capacity" heuristic is more reliable
> payments but another side effect is that low capacity (but possibly
> reliable) channels are neglected
The heuristic is gameable at the cost of devoting more capacity to Lightning.
It is also quite incentive-compatible to source nodes with limited storage but which may need to forward arbitrary amounts to arbitrary nodes.
Low capacity channels cannot be used at all if their capacity is below my payment amount, no matter how reliable they may be, unless I do multipart payments, which increases base fee paid.
>
> > It seems to me that s/aggregate-channel/high-capacity-channel/g in your idea would still work.
> > In effect, the high-capacity channel is very likely to successfully route in either direction.
> > But if by chance it falls into a state where it is unable to route in one direction or other, the intermediate node has other, lower-capacity channels that it can use JIT-Routing with to improve the directionality of the high-capacity channel.
> > Nothing in the JIT-Routing idea requires that the rebalancing loop is small, only that a loop exists.
> > Nodes still need to track their direct channels (so they are implicitly always in the routemap).
> > But payee nodes making BOLT1 invoices could also provide `r` routes in the invoice, with the given routes being from nodes with high-capacity channels, so that even if the intermediate channels are pruned due to low capacity, it is possible to get paid.
>
> Without low capacity channels spontaneous payments would not work.
They would not be prevented a priori, only if all channels it has are too small to be kept in memory by typical source nodes.
If I truly wanted to help such a node, I might make a large capacity channel to it and then send my spontaneous payment.
> Or
> they would depend on asking for an invoice under the hood.
Which I think is better for spontaneous payments.
> It feels to me that at some point, someone with complete knowledge of
> the network needs to eb employed.
Indeed.
See the trampoline payments thread also under discuasion.
Regards,
ZmnSCPxj
Published at
2023-06-09 12:54:41Event JSON
{
"id": "62554735f5214fd604c3ebbbc5d6f1c68c43025d92f1193fc8e4e4891ae102e5",
"pubkey": "4505072744a9d3e490af9262bfe38e6ee5338a77177b565b6b37730b63a7b861",
"created_at": 1686315281,
"kind": 1,
"tags": [
[
"e",
"8e4c35cd4e4d6b988c371e901727ca2c2b53df6f6e16dbaf0daabadc6349028e",
"",
"reply"
],
[
"p",
"9456f7acb763eaab2e02bd8e60cf17df74f352c2ae579dce1f1dd25c95dd611c"
]
],
"content": "π
Original date posted:2019-03-31\nπ Original message:\nGood morning Ariel,\n\n\n\n\u003e \u003e A good pruning heuristic is \"channel capacity\", which can be checked onchain (the value of the UTXO backing the channel is the channel capacity).\n\u003e \u003e It is good to keep channels with large capacity in the routemap, because such large channels are more likely to successfully route a payment than smaller channels.\n\u003e \u003e So it is reasonable to delete channels with low capacity when the routemap memory is becoming close to full.\n\u003e\n\u003e I'm generally concerned about these heuristics because any time nodes\n\u003e can game a heuristic they will be expected to do so.\n\u003e Gaming a heuristic can be good or bad depending on the side-effects.\n\u003e One side effect of the \"channel capacity\" heuristic is more reliable\n\u003e payments but another side effect is that low capacity (but possibly\n\u003e reliable) channels are neglected\n\nThe heuristic is gameable at the cost of devoting more capacity to Lightning.\nIt is also quite incentive-compatible to source nodes with limited storage but which may need to forward arbitrary amounts to arbitrary nodes.\n\nLow capacity channels cannot be used at all if their capacity is below my payment amount, no matter how reliable they may be, unless I do multipart payments, which increases base fee paid.\n\n\u003e\n\u003e \u003e It seems to me that s/aggregate-channel/high-capacity-channel/g in your idea would still work.\n\u003e \u003e In effect, the high-capacity channel is very likely to successfully route in either direction.\n\u003e \u003e But if by chance it falls into a state where it is unable to route in one direction or other, the intermediate node has other, lower-capacity channels that it can use JIT-Routing with to improve the directionality of the high-capacity channel.\n\u003e \u003e Nothing in the JIT-Routing idea requires that the rebalancing loop is small, only that a loop exists.\n\u003e \u003e Nodes still need to track their direct channels (so they are implicitly always in the routemap).\n\u003e \u003e But payee nodes making BOLT1 invoices could also provide `r` routes in the invoice, with the given routes being from nodes with high-capacity channels, so that even if the intermediate channels are pruned due to low capacity, it is possible to get paid.\n\u003e\n\u003e Without low capacity channels spontaneous payments would not work.\n\nThey would not be prevented a priori, only if all channels it has are too small to be kept in memory by typical source nodes.\n\nIf I truly wanted to help such a node, I might make a large capacity channel to it and then send my spontaneous payment.\n\n\u003e Or\n\u003e they would depend on asking for an invoice under the hood.\n\nWhich I think is better for spontaneous payments.\n\n\u003e It feels to me that at some point, someone with complete knowledge of\n\u003e the network needs to eb employed.\n\n\nIndeed.\nSee the trampoline payments thread also under discuasion.\n\n\nRegards,\nZmnSCPxj",
"sig": "7c1324b6d2384b8b6e06db9ed7fea641430bd715e7faded19949f68a321202a8a9d339352190a899793401231e904d76fcd83c51a96fd4fccc5c5e7069461c04"
}