From rusty at rustcorp.com.au Thu Oct 15 01:02:13 2020 From: rusty at rustcorp.com.au (Rusty Russell) Date: Thu, 15 Oct 2020 11:32:13 +1030 Subject: [Lightning-dev] [RFC] Simplified (but less optimal) HTLC Negotiation In-Reply-To: References: <87r1q3kod8.fsf@rustcorp.com.au> <87v9fez69y.fsf@gmail.com> Message-ID: <87k0vsfgiy.fsf@rustcorp.com.au> Bastien TEINTURIER writes: > It's a bit tricky to get it right at first, but once you get it right you > don't need to touch that > code again and everything runs smoothly. We're pretty close to that state, > so why would we want to > start from scratch? Or am I missing something? Well, if you've implemented a state-based approach then this is simply a subset of that so it's simple to implement (I believe, I haven't done it yet!). But with a synchronous approach like this, we can do dynamic protocol updates at any time without having a special "stop and drain" step. For example, you can decrease the amount of HTLCs you accept, without worrying about the case where there HTLCs being added right now. This solves a similar outstanding problem with update_fee. Cheers, Rusty.