[Lightning-dev] Minor protocol revisions.

Rusty Russell rusty at rustcorp.com.au
Thu Sep 24 05:47:41 UTC 2015


Hi all!

        I know everyone's been busy, but I wanted to note some
lightning.proto changes I just pushed.

1) Close now has an second ACK stage, which means you know the close ack
   has been received.
2) Minor renumbering (I avoided this while it was still thrashing).
3) HTLC rejection (eg. bad route, insufficient fees) added.
4) HTLC precision increase, ceiling drop.

The last one deserves some discussion; I floated the idea with Taj and
Joseph of allowing sub-satoshi HTLC amounts, and they concurred.
Amounts get truncated on settlement of course, but they may serve us
well in future.

As a secondary effect, 32 bits places a ceiling of 0.04 satoshi
(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.

Cheers,
Rusty.
[1] Please do not construe this as any form of beverage-backed warranty :)


More information about the Lightning-dev mailing list