A state machine.



Summary:

In this context, Rusty Russell is discussing the state diagram for the Lightning Network. He focuses on the different INIT states and suggests that the graph should follow the protocol steps to simplify it. Russell also proposes an update to allow multiple HTLCs at once and what it would look like in the protocol. He suggests modifying PKT_UPDATE_COMPLETE_HTLC by having some go to WAIT_FOR_UPDATE_ACCEPT instead of WAIT_FOR_HTLC_ACCEPT so that declining is forbidden. Russell finds the PRIO stuff cumbersome and suggests a constant tiebreak or having high priority given to whoever last went from WAIT_FOR_UPDATE_SIG -> NORMAL. He brings up a potential deadlock issue and proposes having a "timeout waiting for message -> retry/close channel" for most of the non-NORMAL states. Lastly, Russell proposes adding a PKT_REBALANCE_VIA_BLOCKCHAIN option and provides a diagram of how it would work.


Updated on: 2023-05-18T00:34:54.478363+00:00