]> git.bitcoin.ninja Git - rust-lightning/commit
Do not serialize `Channel::last_sent_closing_fee` to disk
authorMatt Corallo <git@bluematt.me>
Mon, 19 Jul 2021 18:32:11 +0000 (18:32 +0000)
committerMatt Corallo <git@bluematt.me>
Fri, 13 Aug 2021 23:07:53 +0000 (23:07 +0000)
commitb1aa950f4fd0333465fb9193a7a70e4e20cd2abe
tree48367bbfdd613a5383aa3e7934209468b1443024
parent267053ff74a09763f6c12223a61fd01137e53624
Do not serialize `Channel::last_sent_closing_fee` to disk

We're supposed to write `Channel` to disk as if
`remove_uncommitted_htlcs_and_mark_paused` had just run, however we
were writing `last_sent_closing_fee` to disk (if it is not-None),
whereas `remove_uncommitted_htlcs_and_mark_paused` clears it.
Indeed, the BOLTs say fee "... negotiation restarts on
reconnection."
lightning/src/ln/channel.rs