Skip to content

Commit cf5192c

Browse files
committed
f rename s/OpenChannelRequestAcceptorFunds/InboundChannelFunds/
1 parent 4132c7e commit cf5192c

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
@@ -542,7 +542,7 @@ impl_writeable_tlv_based_enum!(PaymentFailureReason,
542542
///
543543
/// Allows the differentiation between a request for a dual-funded and non-dual-funded channel.
544544
#[derive(Clone, Debug, PartialEq, Eq)]
545-
pub enum OpenChannelRequestAcceptorFunds {
545+
pub enum InboundChannelFunds {
546546
/// For a non-dual-funded channel, the `push_msat` value from the channel initiator to us.
547547
PushMsat(u64),
548548
/// Indicates the open request is for a dual funded channel and we may choose to contribute
@@ -1153,9 +1153,9 @@ pub enum Event {
11531153
},
11541154
/// Indicates a request to open a new channel by a peer.
11551155
///
1156-
/// If `our_funds` is `OpenChannelRequest::DualFunded`, this indicates that the peer wishes to
1156+
/// If `acceptor_funds` is `InboundChannelFunds::DualFunded`, this indicates that the peer wishes to
11571157
/// open a dual-funded channel. In this case you can choose whether to contribute funds or not.
1158-
/// Otherwise, `our_funds` will be `OpenChannelRequest::PushMsats`, indicating the `push_msats`
1158+
/// Otherwise, `acceptor_funds` will be `InboundChannelFunds::PushMsats`, indicating the `push_msats`
11591159
/// value for a non-dual-funded channel.
11601160
///
11611161
/// To accept the request (and in the case of a dual-funded channel, not contribute funds),
@@ -1200,7 +1200,7 @@ pub enum Event {
12001200
/// The channel value of the requested channel.
12011201
funding_satoshis: u64,
12021202
/// Our starting balance in the channel if the request is accepted, in milli-satoshi.
1203-
acceptor_funds: OpenChannelRequestAcceptorFunds,
1203+
acceptor_funds: InboundChannelFunds,
12041204
/// The features that this channel will operate with. If you reject the channel, a
12051205
/// well-behaved counterparty may automatically re-attempt the channel with a new set of
12061206
/// 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.
@@ -7109,7 +7109,7 @@ where
71097109
temporary_channel_id: msg.common_fields.temporary_channel_id.clone(),
71107110
counterparty_node_id: counterparty_node_id.clone(),
71117111
funding_satoshis: msg.common_fields.funding_satoshis,
7112-
acceptor_funds: OpenChannelRequestAcceptorFunds::PushMsat(msg.push_msat),
7112+
acceptor_funds: InboundChannelFunds::PushMsat(msg.push_msat),
71137113
channel_type: msg.common_fields.channel_type.clone().unwrap(),
71147114
}, None));
71157115
peer_state.inbound_channel_request_by_id.insert(temporary_channel_id, InboundChannelRequest {
@@ -7161,7 +7161,7 @@ where
71617161
temporary_channel_id: msg.common_fields.temporary_channel_id.clone(),
71627162
counterparty_node_id: counterparty_node_id.clone(),
71637163
funding_satoshis: msg.common_fields.funding_satoshis,
7164-
acceptor_funds: OpenChannelRequestAcceptorFunds::DualFunded,
7164+
acceptor_funds: InboundChannelFunds::DualFunded,
71657165
channel_type: msg.common_fields.channel_type.clone().unwrap(),
71667166
}, None));
71677167
peer_state.inbound_channel_request_by_id.insert(temporary_channel_id, InboundChannelRequest {

0 commit comments

Comments
 (0)