@@ -851,10 +851,10 @@ impl<Signer: Sign, M: Deref, T: Deref, K: Deref, F: Deref, L: Deref> ChannelMana
851
851
852
852
/// Creates a new outbound channel to the given remote node and with the given value.
853
853
///
854
- /// user_id will be provided back as user_channel_id in FundingGenerationReady and
855
- /// FundingBroadcastSafe events to allow tracking of which events correspond with which
856
- /// create_channel call. Note that user_channel_id defaults to 0 for inbound channels, so you
857
- /// may wish to avoid using 0 for user_id here.
854
+ /// user_id will be provided back as user_channel_id in FundingGenerationReady events to allow
855
+ /// tracking of which events correspond with which create_channel call. Note that the
856
+ /// user_channel_id defaults to 0 for inbound channels, so you may wish to avoid using 0 for
857
+ /// user_id here.
858
858
///
859
859
/// If successful, will generate a SendOpenChannel message event, so you should probably poll
860
860
/// PeerManager::process_events afterwards.
@@ -1536,6 +1536,10 @@ impl<Signer: Sign, M: Deref, T: Deref, K: Deref, F: Deref, L: Deref> ChannelMana
1536
1536
///
1537
1537
/// May panic if the funding_txo is duplicative with some other channel (note that this should
1538
1538
/// be trivially prevented by using unique funding transaction keys per-channel).
1539
+ ///
1540
+ /// Do NOT broadcast the funding transaction yourself. When we have safely received our
1541
+ /// counterparty's signature the funding transaction will automatically be broadcast via the
1542
+ /// [`BroadcasterInterface`] provided when this `ChannelManager` was constructed.
1539
1543
pub fn funding_transaction_generated ( & self , temporary_channel_id : & [ u8 ; 32 ] , funding_transaction : Transaction , output_index : u16 ) -> Result < ( ) , APIError > {
1540
1544
let _persistence_guard = PersistenceNotifierGuard :: new ( & self . total_consistency_lock , & self . persistence_notifier ) ;
1541
1545
0 commit comments