]> git.bitcoin.ninja Git - rust-lightning/commit
Cache local_commitment_tx in OnchainTxHandler
authorAntoine Riard <ariard@student.42.fr>
Sat, 21 Mar 2020 00:26:23 +0000 (20:26 -0400)
committerAntoine Riard <ariard@student.42.fr>
Fri, 17 Apr 2020 21:43:50 +0000 (17:43 -0400)
commit73e0a0112adae5086ae6617fec2131f362086797
tree8c6dfd83a7da30de03135960b396988a2f95c663
parent04a17b2a152396384b108e8ef284c85bd9f0b50b
Cache local_commitment_tx in OnchainTxHandler

As transaction generation and signature is headed to be moved
inside OnchainTxHandler, cache local_commitment_tx signed by remote.

If access to local commitment transaction is needed, we extend Onchain
TxHandler API to do so.
lightning/src/ln/channelmonitor.rs
lightning/src/ln/onchaintx.rs