Track signing of local txn in channelmonitor and refuse updates
authorMatt Corallo <git@bluematt.me>
Sun, 19 Apr 2020 18:15:56 +0000 (14:15 -0400)
committerMatt Corallo <git@bluematt.me>
Fri, 24 Apr 2020 22:51:29 +0000 (18:51 -0400)
commitddd85fb55023ac7fea1c1a7ae4748b2b795dff61
tree095f58c7d1623cd231e6a65d13e05ea4f8974bb9
parent359b3d5702b585a67e4e6d4044c35caf86bd787d
Track signing of local txn in channelmonitor and refuse updates

In e46e183084ed858f41aa304acd78503aea1a96ed we began tracking
whether a local commitment transaction had been signed and
broadcast in OnchainTxHandler, refusing to update the local
commitment transaction state in the ChannelMonitor on that basis.

This is fine, except that it doesn't make a lot of sense to store
the full local transaction state in OnchainTxHandler - we should be
providing it the unsigned local transaction at the time we wish to
broadcast and no more (just like we do all other transaction data).
lightning/src/ln/channelmonitor.rs