Skip to content

Commit 4262eef

Browse files
committed
f rename s/OpenChannelRequestAcceptorFunds/InboundChannelFunds/
1 parent 2fd1a9a commit 4262eef

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

lightning/src/events/mod.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -540,7 +540,7 @@ impl_writeable_tlv_based_enum!(PaymentFailureReason,
540540
///
541541
/// Allows the differentiation between a request for a dual-funded and non-dual-funded channel.
542542
#[derive(Clone, Debug, PartialEq, Eq)]
543-
pub enum OpenChannelRequestAcceptorFunds {
543+
pub enum InboundChannelFunds {
544544
/// For a non-dual-funded channel, the `push_msat` value from the channel initiator to us.
545545
PushMsat(u64),
546546
/// Indicates the open request is for a dual funded channel and we may choose to contribute
@@ -1126,9 +1126,9 @@ pub enum Event {
11261126
},
11271127
/// Indicates a request to open a new channel by a peer.
11281128
///
1129-
/// If `our_funds` is `OpenChannelRequest::DualFunded`, this indicates that the peer wishes to
1129+
/// If `acceptor_funds` is `InboundChannelFunds::DualFunded`, this indicates that the peer wishes to
11301130
/// open a dual-funded channel. In this case you can choose whether to contribute funds or not.
1131-
/// Otherwise, `our_funds` will be `OpenChannelRequest::PushMsats`, indicating the `push_msats`
1131+
/// Otherwise, `acceptor_funds` will be `InboundChannelFunds::PushMsats`, indicating the `push_msats`
11321132
/// value for a non-dual-funded channel.
11331133
///
11341134
/// To accept the request (and in the case of a dual-funded channel, not contribute funds),
@@ -1173,7 +1173,7 @@ pub enum Event {
11731173
/// The channel value of the requested channel.
11741174
funding_satoshis: u64,
11751175
/// Our starting balance in the channel if the request is accepted, in milli-satoshi.
1176-
acceptor_funds: OpenChannelRequestAcceptorFunds,
1176+
acceptor_funds: InboundChannelFunds,
11771177
/// The features that this channel will operate with. If you reject the channel, a
11781178
/// well-behaved counterparty may automatically re-attempt the channel with a new set of
11791179
/// feature flags.

lightning/src/ln/channelmanager.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ use crate::chain::{Confirm, ChannelMonitorUpdateStatus, Watch, BestBlock};
3939
use crate::chain::chaininterface::{BroadcasterInterface, ConfirmationTarget, FeeEstimator, LowerBoundedFeeEstimator};
4040
use crate::chain::channelmonitor::{ChannelMonitor, ChannelMonitorUpdate, WithChannelMonitor, ChannelMonitorUpdateStep, HTLC_FAIL_BACK_BUFFER, CLTV_CLAIM_BUFFER, LATENCY_GRACE_PERIOD_BLOCKS, ANTI_REORG_DELAY, MonitorEvent, CLOSED_CHANNEL_UPDATE_ID};
4141
use crate::chain::transaction::{OutPoint, TransactionData};
42-
use crate::events::{self, OpenChannelRequestAcceptorFunds};
42+
use crate::events::{self, InboundChannelFunds};
4343
use crate::events::{Event, EventHandler, EventsProvider, MessageSendEvent, MessageSendEventsProvider, ClosureReason, HTLCDestination, PaymentFailureReason};
4444
// Since this struct is returned in `list_channels` methods, expose it here in case users want to
4545
// construct one themselves.
@@ -7080,7 +7080,7 @@ where
70807080
temporary_channel_id: msg.common_fields.temporary_channel_id.clone(),
70817081
counterparty_node_id: counterparty_node_id.clone(),
70827082
funding_satoshis: msg.common_fields.funding_satoshis,
7083-
acceptor_funds: OpenChannelRequestAcceptorFunds::PushMsat(msg.push_msat),
7083+
acceptor_funds: InboundChannelFunds::PushMsat(msg.push_msat),
70847084
channel_type: msg.common_fields.channel_type.clone().unwrap(),
70857085
}, None));
70867086
peer_state.inbound_channel_request_by_id.insert(temporary_channel_id, InboundChannelRequest {
@@ -7132,7 +7132,7 @@ where
71327132
temporary_channel_id: msg.common_fields.temporary_channel_id.clone(),
71337133
counterparty_node_id: counterparty_node_id.clone(),
71347134
funding_satoshis: msg.common_fields.funding_satoshis,
7135-
acceptor_funds: OpenChannelRequestAcceptorFunds::DualFunded,
7135+
acceptor_funds: InboundChannelFunds::DualFunded,
71367136
channel_type: msg.common_fields.channel_type.clone().unwrap(),
71377137
}, None));
71387138
peer_state.inbound_channel_request_by_id.insert(temporary_channel_id, InboundChannelRequest {

0 commit comments

Comments
 (0)