]> git.bitcoin.ninja Git - rust-lightning/commit
Add OnchainTxHandler::get_fully_signed_htlc
authorAntoine Riard <ariard@student.42.fr>
Mon, 23 Mar 2020 05:30:48 +0000 (01:30 -0400)
committerAntoine Riard <ariard@student.42.fr>
Fri, 17 Apr 2020 21:43:50 +0000 (17:43 -0400)
commit8369541f63eead52552788198fadfa2456b2f462
tree97570027062268c0ee65db91da8fbb5a1daf7338
parent6b8a5166476228f93a06fe55db40fd9715b118ad
Add OnchainTxHandler::get_fully_signed_htlc

In case of channel force-closure, access to local commitment
transactions and its dependent HTLCs is needed. Instead of using
broadcast_by_local_state which registers outpoint to claim and
outputs to watch which are going to be discarded in this case,
we simply ask OnchainTxHandler to build and sign HTLC transactions
through new API.
lightning/src/ln/channelmonitor.rs
lightning/src/ln/onchaintx.rs