@@ -546,6 +546,9 @@ pub enum InboundChannelFunds {
546
546
/// For a non-dual-funded channel, the `push_msat` value from the channel initiator to us.
547
547
PushMsat ( u64 ) ,
548
548
/// Indicates the open request is for a dual funded channel.
549
+ ///
550
+ /// Note that these channels do not support starting with initial funds pushed from the counterparty,
551
+ // who is the channel opener in this case.
549
552
DualFunded ,
550
553
}
551
554
@@ -1154,9 +1157,9 @@ pub enum Event {
1154
1157
} ,
1155
1158
/// Indicates a request to open a new channel by a peer.
1156
1159
///
1157
- /// If `acceptor_funds ` is `InboundChannelFunds::DualFunded`, this indicates that the peer wishes to
1158
- /// open a dual-funded channel. Otherwise, `acceptor_funds` will be `InboundChannelFunds::PushMsats`,
1159
- /// indicating the `push_msats` value for a non-dual-funded channel.
1160
+ /// If `channel_negotiation_type ` is `InboundChannelFunds::DualFunded`, this indicates that the peer wishes to
1161
+ /// open a dual-funded channel. Otherwise, this field will be `InboundChannelFunds::PushMsats`,
1162
+ /// indicating the `push_msats` value our peer is pushing to us for a non-dual-funded channel.
1160
1163
///
1161
1164
/// To accept the request (and in the case of a dual-funded channel, not contribute funds),
1162
1165
/// call [`ChannelManager::accept_inbound_channel`].
@@ -1191,8 +1194,10 @@ pub enum Event {
1191
1194
counterparty_node_id : PublicKey ,
1192
1195
/// The channel value of the requested channel.
1193
1196
funding_satoshis : u64 ,
1194
- /// Our starting balance in the channel if the request is accepted, in milli-satoshi.
1195
- acceptor_funds : InboundChannelFunds ,
1197
+ /// If `channel_negotiation_type` is `InboundChannelFunds::DualFunded`, this indicates that the peer wishes to
1198
+ /// open a dual-funded channel. Otherwise, this field will be `InboundChannelFunds::PushMsats`,
1199
+ /// indicating the `push_msats` value our peer is pushing to us for a non-dual-funded channel.
1200
+ channel_negotiation_type : InboundChannelFunds ,
1196
1201
/// The features that this channel will operate with. If you reject the channel, a
1197
1202
/// well-behaved counterparty may automatically re-attempt the channel with a new set of
1198
1203
/// feature flags.
0 commit comments