Ariel Luaces [ARCHIVE] on Nostr: đ
Original date posted:2019-03-30 đ Original message: > I am forking this ...
đ
Original date posted:2019-03-30
đ Original message:
> I am forking this thread as my reply is not at all related to the JIT-Routing.
Sorry I think my last reply was also getting off subject as well.
Thank you for forking the thread
> Nonexistent channels (i.e. channels that do not have some backing UTXO in the Bitcoin blockchain) are not safe to propagate on the network since they are trivially spammable (i.e. can generate a large number of fake channels to waste network bandwidth).
I hadn't considered the effect this gossip would have on the network.
Definitely nodes should not trust one another to tell the truth about
nonexistent channels.
The source node could blindly allow intermediate nodes to create
sub-routes to the next hop.
But I wouldn't favor this blind routing idea because fee calculations
would be a complete guess.
> 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
> 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. Or
they would depend on asking for an invoice under the hood.
It feels to me that at some point, someone with complete knowledge of
the network needs to eb employed.
Cheers
Ariel Lorenzo-Luaces
Published at
2023-06-09 12:54:40Event JSON
{
"id": "e6d688feed252fe7558fb08e4b14207b9d6e9fedc23912d764a5f2bd7bd05970",
"pubkey": "ebed449fcaac35befed3b0f55f70eef25ed95542b26fd12595522daa62016304",
"created_at": 1686315280,
"kind": 1,
"tags": [
[
"e",
"51aa2604767b047b656b0c7b3002b6e04df5103011e56634c097f530dbf94ff3",
"",
"root"
],
[
"e",
"dc398749ba0bd20b323a9c0350694e3375f85fc3087eabe8e78c3a369aef1570",
"",
"reply"
],
[
"p",
"5d373bc44b6cb694f096ec148573e6a122bc33455bc167ade3ae63d1189185d2"
]
],
"content": "đ
Original date posted:2019-03-30\nđ Original message:\n\u003e I am forking this thread as my reply is not at all related to the JIT-Routing.\n\nSorry I think my last reply was also getting off subject as well.\nThank you for forking the thread\n\n\u003e Nonexistent channels (i.e. channels that do not have some backing UTXO in the Bitcoin blockchain) are not safe to propagate on the network since they are trivially spammable (i.e. can generate a large number of fake channels to waste network bandwidth).\n\nI hadn't considered the effect this gossip would have on the network.\nDefinitely nodes should not trust one another to tell the truth about\nnonexistent channels.\n\nThe source node could blindly allow intermediate nodes to create\nsub-routes to the next hop.\nBut I wouldn't favor this blind routing idea because fee calculations\nwould be a complete guess.\n\n\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 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 So it is reasonable to delete channels with low capacity when the routemap memory is becoming close to full.\n\nI'm generally concerned about these heuristics because any time nodes\ncan game a heuristic they will be expected to do so.\nGaming a heuristic can be good or bad depending on the side-effects.\nOne side effect of the \"channel capacity\" heuristic is more reliable\npayments but another side effect is that low capacity (but possibly\nreliable) channels are neglected\n\n\u003e It seems to me that s/aggregate-channel/high-capacity-channel/g in your idea would still work.\n\u003e In effect, the high-capacity channel is very likely to successfully route in either direction.\n\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 Nothing in the JIT-Routing idea requires that the rebalancing loop is small, only that a loop exists.\n\u003e\n\u003e Nodes still need to track their direct channels (so they are implicitly always in the routemap).\n\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\nWithout low capacity channels spontaneous payments would not work. Or\nthey would depend on asking for an invoice under the hood.\nIt feels to me that at some point, someone with complete knowledge of\nthe network needs to eb employed.\n\nCheers\nAriel Lorenzo-Luaces",
"sig": "817336fe9051c854eec3e27dea0d7e64da6e053db3a469a2d9e189c4963feefe765f9437b2d347fe94091c3531605bfbef3d3650d297d3112ff838f01354804f"
}