Skip to content

Commit 9c92004

Browse files
committed
f rename s/OpenChannelRequestAcceptorFunds/InboundChannelFunds/
1 parent 4644ab5 commit 9c92004

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
@@ -495,7 +495,7 @@ impl_writeable_tlv_based_enum!(PaymentFailureReason,
495495
///
496496
/// Allows the differentiation between a request for a dual-funded and non-dual-funded channel.
497497
#[derive(Clone, Debug, PartialEq, Eq)]
498-
pub enum OpenChannelRequestAcceptorFunds {
498+
pub enum InboundChannelFunds {
499499
/// For a non-dual-funded channel, the `push_msat` value from the channel initiator to us.
500500
PushMsat(u64),
501501
/// Indicates the open request is for a dual funded channel and we may choose to contribute
@@ -1081,9 +1081,9 @@ pub enum Event {
10811081
},
10821082
/// Indicates a request to open a new channel by a peer.
10831083
///
1084-
/// If `our_funds` is `OpenChannelRequest::DualFunded`, this indicates that the peer wishes to
1084+
/// If `acceptor_funds` is `InboundChannelFunds::DualFunded`, this indicates that the peer wishes to
10851085
/// open a dual-funded channel. In this case you can choose whether to contribute funds or not.
1086-
/// Otherwise, `our_funds` will be `OpenChannelRequest::PushMsats`, indicating the `push_msats`
1086+
/// Otherwise, `acceptor_funds` will be `InboundChannelFunds::PushMsats`, indicating the `push_msats`
10871087
/// value for a non-dual-funded channel.
10881088
///
10891089
/// To accept the request (and in the case of a dual-funded channel, not contribute funds),
@@ -1128,7 +1128,7 @@ pub enum Event {
11281128
/// The channel value of the requested channel.
11291129
funding_satoshis: u64,
11301130
/// Our starting balance in the channel if the request is accepted, in milli-satoshi.
1131-
acceptor_funds: OpenChannelRequestAcceptorFunds,
1131+
acceptor_funds: InboundChannelFunds,
11321132
/// The features that this channel will operate with. If you reject the channel, a
11331133
/// well-behaved counterparty may automatically re-attempt the channel with a new set of
11341134
/// 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.
@@ -7038,7 +7038,7 @@ where
70387038
temporary_channel_id: msg.common_fields.temporary_channel_id.clone(),
70397039
counterparty_node_id: counterparty_node_id.clone(),
70407040
funding_satoshis: msg.common_fields.funding_satoshis,
7041-
acceptor_funds: OpenChannelRequestAcceptorFunds::PushMsat(msg.push_msat),
7041+
acceptor_funds: InboundChannelFunds::PushMsat(msg.push_msat),
70427042
channel_type: msg.common_fields.channel_type.clone().unwrap(),
70437043
}, None));
70447044
peer_state.inbound_channel_request_by_id.insert(temporary_channel_id, InboundChannelRequest {
@@ -7090,7 +7090,7 @@ where
70907090
temporary_channel_id: msg.common_fields.temporary_channel_id.clone(),
70917091
counterparty_node_id: counterparty_node_id.clone(),
70927092
funding_satoshis: msg.common_fields.funding_satoshis,
7093-
acceptor_funds: OpenChannelRequestAcceptorFunds::DualFunded,
7093+
acceptor_funds: InboundChannelFunds::DualFunded,
70947094
channel_type: msg.common_fields.channel_type.clone().unwrap(),
70957095
}, None));
70967096
peer_state.inbound_channel_request_by_id.insert(temporary_channel_id, InboundChannelRequest {

0 commit comments

Comments
 (0)