Don't modify LocalCommitmemntTransaction after construction
authorMatt Corallo <git@bluematt.me>
Thu, 23 Apr 2020 19:43:21 +0000 (15:43 -0400)
committerMatt Corallo <git@bluematt.me>
Sat, 25 Apr 2020 01:23:51 +0000 (21:23 -0400)
commit29199fae4634425eb4307651b3b21d93580c8f42
tree174042b7bec37dae4aaee566f95f0e7667ba648d
parent7159d1546ae92281a7e0533813a6e7558f16354a
Don't modify LocalCommitmemntTransaction after construction

Instead of adding signatures to LocalCommitmentTransactions, we
instead leave them unsigned and use them to construct signed
Transactions when we want them. This cleans up the guts of
LocalCommitmentTransaction enough that we can, and do, expose its
state to the world, allowing external signers to have a basic
awareness of what they're signing.
lightning/src/ln/chan_utils.rs
lightning/src/ln/channel.rs
lightning/src/ln/channelmonitor.rs
lightning/src/ln/onchaintx.rs