Lean on the holding cell for commitments when updating fees
authorMatt Corallo <git@bluematt.me>
Mon, 21 Nov 2022 01:13:52 +0000 (01:13 +0000)
committerMatt Corallo <git@bluematt.me>
Tue, 6 Dec 2022 18:18:26 +0000 (18:18 +0000)
commitaa9630b0cdb4ff1dd4e4fcebc3ce0be09a41a109
tree5b83766f9778b9a8da34544eeb1d5cc57cf0c603
parent153137804049ca92e869353dd13c2ae219ad7163
Lean on the holding cell for commitments when updating fees

Like the previous commit, here we update the update_fee+commit
logic to simply push the fee update into the holding cell and then
use the standard holding-cell-freeing codepaths to actually send
the commitment update. This removes a substantial amount of code,
reducing redundant codepaths and keeping channel state machine
logic in channel.rs.
lightning/src/ln/channel.rs
lightning/src/ln/channelmanager.rs