]> git.bitcoin.ninja Git - rust-lightning/commit
Move HTLC tx generation in OnchainTxHandler
authorAntoine Riard <ariard@student.42.fr>
Mon, 9 Mar 2020 22:15:35 +0000 (18:15 -0400)
committerAntoine Riard <ariard@student.42.fr>
Fri, 17 Apr 2020 21:50:21 +0000 (17:50 -0400)
commit1107ab06c33bd360bdee7ee64f4b690e753003f6
treed566256ed7c398a86e6e23e2343d125f510c6b2e
parent8369541f63eead52552788198fadfa2456b2f462
Move HTLC tx generation in OnchainTxHandler

HTLC Transaction can't be bumped without sighash changes
so their gneeration is one-time for nwo. We move them in
OnchainTxHandler for simplifying ChannelMonitor and to prepare
storage of keys material behind one external signer interface.

Some tests break due to change in transaction broadcaster order.
Number of transactions may vary because of temporary anti-duplicata
tweak can't dissociate between 2- broadcast from different
origins (ChannelMonitor, ChannelManager) and 2-broadcast from same
component.
lightning/src/chain/keysinterface.rs
lightning/src/ln/chan_utils.rs
lightning/src/ln/channel.rs
lightning/src/ln/channelmonitor.rs
lightning/src/ln/functional_tests.rs
lightning/src/ln/onchaintx.rs
lightning/src/util/enforcing_trait_impls.rs