Dedup RemoteTxCache by removing OnchainTxHandler copy
authorAntoine Riard <ariard@student.42.fr>
Tue, 28 Apr 2020 00:07:17 +0000 (20:07 -0400)
committerAntoine Riard <ariard@student.42.fr>
Thu, 28 May 2020 08:21:47 +0000 (04:21 -0400)
commit9455b49a5dfb480f814e7fd6dc98afcfda3138d7
tree2b9fdc32f5cf7a6d56fd39a442f6c2423c867905
parent1d7ed17a647d5d0e66ab397fa89cc28cc5bc68c7
Dedup RemoteTxCache by removing OnchainTxHandler copy

RemoteTxCache was providing all data needed at transaction
signature for any remote HTLC transaction or justice transaction.
This move was making the API between OnchainTxHandle akward and
scope of responsibilites with ChannelMonitor unclear.

Instead scope OnchainTxHandler to transaction-finalization, fee-bumping
and broadcast only.
lightning/src/ln/channelmonitor.rs
lightning/src/ln/onchaintx.rs