Author: Anthony Towns 2015-08-31 02:24:26
Published on: 2015-08-31T02:24:26+00:00
In an email exchange between Rusty Russell and Anthony Towns on August 31, 2015, they discussed the possibility of updating multiple hash time-locked contracts (HTLCs) at once. Russell proposed a single PKT_UPDATE_CHANNEL instead of ADD_HTLC, COMPLETE_HTLC, TIMEOUT_HTLC, etc., but Towns was hesitant to implement the optimization at that time due to the complexity of handshaking. They also discussed CMD_CLOSE and PKT_CLOSE options during different states. Towns suggested a new state diagram for HTLCs with clearer constraints, which Russell noted currently allows declining of HTLC updates and potential deadlocks if both parties think they are high or low priority. Towns pointed out that it is not safe to assume that strangers on the network have bug-free software and the current commitment ID does not actually give priority.
Updated on: 2023-05-18T00:34:09.698901+00:00