mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-20 15:44:21 +01:00
We keep the scriptpubkey to send until after a commitment_signed (or, in the corner case, if there's no pending commitment). When we receive a shutdown from the peer, we pass it up to the master. It's up to the master not to add any more HTLCs, which works because we move from CHANNELD_NORMAL to CHANNELD_SHUTTING_DOWN. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>