]> git.bitcoin.ninja Git - rust-lightning/commit
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>
Tue, 12 May 2020 21:41:33 +0000 (17:41 -0400)
commit3c75ae3bbef153db494eba2de31a3a8cd04aab98
tree98e68fd68595fdae16c185a6ce4c94b67d8d5091
parent1401d4b0abac0b76e39f94e64611115d0544c31f
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