]> git.bitcoin.ninja Git - rust-lightning/commit
Add `FundingTxBroadcastSafe` event
authorjbesraa <jbesraa@gmail.com>
Thu, 9 May 2024 13:37:33 +0000 (16:37 +0300)
committerjbesraa <jbesraa@gmail.com>
Thu, 13 Jun 2024 06:02:06 +0000 (09:02 +0300)
commitb06df26b9f73b2f59d4df01735b9a08d821ccf19
tree404326c36200fc204f15c5d1e5537c9d1e51051e
parentf2237a78ff032e5113f5b44edb415b6bd12ebfab
Add `FundingTxBroadcastSafe` event

The `FundingTxBroadcastSafe` event indicates that we have received
`funding_signed` message from our counterparty and that you should
broadcast the funding transaction.

This event is only emitted if upon generating the funding transaction
you call `ChannelManager::unsafe_manual_funding_transaction_generated`
that will emit this event instead of `ChannelPending` event.

`ChannelManager::unsafe_manual_funding_transaction_generated` wont check
if the funding transaction is signed, those its unsafe. It is manual
because you are responsibile on broadcasting the transaction once the
event is received.
lightning/src/events/mod.rs
lightning/src/ln/channel.rs
lightning/src/ln/channelmanager.rs
lightning/src/ln/functional_test_utils.rs
lightning/src/ln/functional_tests.rs