]> 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>
Mon, 8 Jul 2024 17:10:19 +0000 (20:10 +0300)
commit8403755a2a524beb9f6c8951f51dd60f7c54c912
tree4a7ae7a3fca2ddb45ebbf06c2ec1cb480950260d
parentbfc20f8f34dc94b61458e87397d747e092762647
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_tests.rs