]> git.bitcoin.ninja Git - rust-lightning/commit
Move local commitment tx generation in OnchainTxHandler
authorAntoine Riard <ariard@student.42.fr>
Tue, 3 Mar 2020 23:51:50 +0000 (18:51 -0500)
committerAntoine Riard <ariard@student.42.fr>
Fri, 17 Apr 2020 21:43:50 +0000 (17:43 -0400)
commit2be1f72005d407ed0183b383deeaca6b88becc31
tree316026f2cd46772715caa3dc80e079a3081b86b0
parente46e183084ed858f41aa304acd78503aea1a96ed
Move local commitment tx generation in OnchainTxHandler

Local Commitment Transaction can't be bumped without anchor outputs
so their generation is one-time for now. 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 broadcast order but
number of transactions broadcast should stay the same.
lightning/src/ln/channelmonitor.rs
lightning/src/ln/functional_tests.rs
lightning/src/ln/onchaintx.rs