Author: Bastien TEINTURIER 2020-10-14 09:22:51
Published on: 2020-10-14T09:22:51+00:00
In a Lightning-dev mailing list, Christian Decker suggested using the leader-based mechanism to simplify the HTLC state machine rather than Rusty Russell's recent proposal. The current HTLC state machine can be confusing at first, but once implemented, it is straightforward and deterministic. However, recurring compatibility issues arise during reconnections. Test scenarios could help implementers get this right. Meanwhile, Russell's proposal significantly simplifies the state machine by eliminating turn changes and negotiating both sides at once. However, it adds 1 RTT latency if it's not your turn. Database accesses are unchanged, and one day, it will be compulsory to record the index at which HTLCs were changed in case peer wants you to rexmit though.
Updated on: 2023-06-03T02:51:15.787097+00:00