Rusty Russell [ARCHIVE] on Nostr: 📅 Original date posted:2015-09-24 📝 Original message: Pierre <pm+lists at ...
📅 Original date posted:2015-09-24
📝 Original message:
Pierre <pm+lists at acinq.fr> writes:
> Hi Rusty,
>
>> 1) Close now has an second ACK stage, which means you know the close ack
>> has been received.
> Argh, I already have trouble understanding the rationale behind all
> the existing closing flows and states :-s Would it be possible to
> publish an updated version of the svg ? aj, any chance you could do
> the same with your 'flat' version ?
Heh, this one is pretty easy. It's just an ack at the end of the
mutual close handshake:
close_channel
close_channel_complete
close_channel_ack (this is new).
>> 3) HTLC rejection (eg. bad route, insufficient fees) added.
> How about the 'commit tx too big' case ? will that just be an error ?
A protocol error: you should never propose a HTLC which will cause the
commit tx to be malformed.
>> As a secondary effect, 32 bits places [an upper bound of 0.04 BTC]
>> (currently about $10USD) on each HTLC. That's more than enough to cover
>> the micropayment uses of lightning, yet if you lose all your money due
>> to a horrible bug in the early days, I can buy you a beer and count us
>> about even[1]. And we can change the protocol later if it becomes
>> overly limiting.
> Such a low ceiling bothers me a little bit, because it kind of states
> that the micropayment use case is the primary target. Is it ? To me,
> scalability and speed are the most interesting properties of
> lightning.
I think the early adopters are going to be microtransactions. And
they're good to have: they build the network, stress-test us, and let us
learn without risking too much.
> I would have preferred a higher (1 BTC ?) limit, but I
> understand this can be changed. Regarding the risk of bugs, you can't
> loose more than the channel capacity so that's another parameter we
> can play with I guess.
My reference implementation refuses to create a channel which would
overflow this. That was a simple check to implement (we already check
that no HTLC would spend more than channel capacity of course).
I use 64 bits internally, to avoid wrap issues anyway.
My general philosophy here is to underpromise, and over-deliver. I
can't talk to all the users individually, but if we set *our*
expectations at "beer money, not rent money" that will hopefully spread.
I recommend reading one of the "I was Goxxed" reddit threads for some
heartbreaking perspective on what happens when innocent people get
caught up in hype :(
Cheers,
Rusty.
Published at
2023-06-09 12:44:40Event JSON
{
"id": "1d1671f6dd53fd72beb0b2dbece281b69b75d2743163b2ddf4ddcdbf3e636a63",
"pubkey": "13bd8c1c5e3b3508a07c92598647160b11ab0deef4c452098e223e443c1ca425",
"created_at": 1686314680,
"kind": 1,
"tags": [
[
"e",
"9128208f979ba16b9ae0be51d665e61e4d39f4748bd35992d09bb44edfaa05bc",
"",
"root"
],
[
"e",
"83efd0a235d3b9d16fb55e1ae8e61a3728fc12bf52349f0f6456ed430f627ed6",
"",
"reply"
],
[
"p",
"208e7a4699791a0264a0298ffa60456c51ac8d8992096a1b67389965eccc82ff"
]
],
"content": "📅 Original date posted:2015-09-24\n📝 Original message:\nPierre \u003cpm+lists at acinq.fr\u003e writes:\n\u003e Hi Rusty,\n\u003e\n\u003e\u003e 1) Close now has an second ACK stage, which means you know the close ack\n\u003e\u003e has been received.\n\u003e Argh, I already have trouble understanding the rationale behind all\n\u003e the existing closing flows and states :-s Would it be possible to\n\u003e publish an updated version of the svg ? aj, any chance you could do\n\u003e the same with your 'flat' version ?\n\nHeh, this one is pretty easy. It's just an ack at the end of the\nmutual close handshake:\n\n close_channel\n close_channel_complete\n close_channel_ack (this is new).\n\n\u003e\u003e 3) HTLC rejection (eg. bad route, insufficient fees) added.\n\u003e How about the 'commit tx too big' case ? will that just be an error ?\n\nA protocol error: you should never propose a HTLC which will cause the\ncommit tx to be malformed.\n\n\u003e\u003e As a secondary effect, 32 bits places [an upper bound of 0.04 BTC]\n\u003e\u003e (currently about $10USD) on each HTLC. That's more than enough to cover\n\u003e\u003e the micropayment uses of lightning, yet if you lose all your money due\n\u003e\u003e to a horrible bug in the early days, I can buy you a beer and count us\n\u003e\u003e about even[1]. And we can change the protocol later if it becomes\n\u003e\u003e overly limiting.\n\n\u003e Such a low ceiling bothers me a little bit, because it kind of states\n\u003e that the micropayment use case is the primary target. Is it ? To me,\n\u003e scalability and speed are the most interesting properties of\n\u003e lightning.\n\nI think the early adopters are going to be microtransactions. And\nthey're good to have: they build the network, stress-test us, and let us\nlearn without risking too much.\n\n\u003e I would have preferred a higher (1 BTC ?) limit, but I\n\u003e understand this can be changed. Regarding the risk of bugs, you can't\n\u003e loose more than the channel capacity so that's another parameter we\n\u003e can play with I guess.\n\nMy reference implementation refuses to create a channel which would\noverflow this. That was a simple check to implement (we already check\nthat no HTLC would spend more than channel capacity of course).\n\nI use 64 bits internally, to avoid wrap issues anyway.\n\nMy general philosophy here is to underpromise, and over-deliver. I\ncan't talk to all the users individually, but if we set *our*\nexpectations at \"beer money, not rent money\" that will hopefully spread.\n\nI recommend reading one of the \"I was Goxxed\" reddit threads for some\nheartbreaking perspective on what happens when innocent people get\ncaught up in hype :(\n\nCheers,\nRusty.",
"sig": "931a2d4b0c9f69fdd9f4a22d143417b5ed3cc6f39b73dd45ead9b3ad8101dbdabed0cb0734c57d82bcda571f736545e01d4fde9fdc905e0a35cad1d51eb0ed23"
}