Skip to content

Commit e9763aa

Browse files
committed
f remove interactive_tx_constructor field from Channel & fix error msg
1 parent ed4e926 commit e9763aa

File tree

2 files changed

+1
-15
lines changed

2 files changed

+1
-15
lines changed

lightning/src/ln/channel.rs

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4093,9 +4093,6 @@ pub(super) struct DualFundingChannelContext {
40934093
// Counterparty designates channel data owned by the another channel participant entity.
40944094
pub(super) struct Channel<SP: Deref> where SP::Target: SignerProvider {
40954095
pub context: ChannelContext<SP>,
4096-
pub dual_funding_channel_context: Option<DualFundingChannelContext>,
4097-
/// The current interactive transaction construction session under negotiation.
4098-
pub interactive_tx_constructor: Option<InteractiveTxConstructor>,
40994096
pub interactive_tx_signing_session: Option<InteractiveTxSigningSession>,
41004097
}
41014098

@@ -8337,8 +8334,6 @@ impl<SP: Deref> OutboundV1Channel<SP> where SP::Target: SignerProvider {
83378334

83388335
let mut channel = Channel {
83398336
context: self.context,
8340-
dual_funding_channel_context: None,
8341-
interactive_tx_constructor: None,
83428337
interactive_tx_signing_session: None,
83438338
};
83448339

@@ -8564,8 +8559,6 @@ impl<SP: Deref> InboundV1Channel<SP> where SP::Target: SignerProvider {
85648559
// `ChannelMonitor`.
85658560
let mut channel = Channel {
85668561
context: self.context,
8567-
dual_funding_channel_context: None,
8568-
interactive_tx_constructor: None,
85698562
interactive_tx_signing_session: None,
85708563
};
85718564
let need_channel_ready = channel.check_get_channel_ready(0, logger).is_some();
@@ -8711,8 +8704,6 @@ impl<SP: Deref> OutboundV2Channel<SP> where SP::Target: SignerProvider {
87118704
pub fn into_channel(self, signing_session: InteractiveTxSigningSession) -> Result<Channel<SP>, ChannelError>{
87128705
let channel = Channel {
87138706
context: self.context,
8714-
dual_funding_channel_context: Some(self.dual_funding_context),
8715-
interactive_tx_constructor: None,
87168707
interactive_tx_signing_session: Some(signing_session),
87178708
};
87188709

@@ -8907,8 +8898,6 @@ impl<SP: Deref> InboundV2Channel<SP> where SP::Target: SignerProvider {
89078898
pub fn into_channel(self, signing_session: InteractiveTxSigningSession) -> Result<Channel<SP>, ChannelError>{
89088899
let channel = Channel {
89098900
context: self.context,
8910-
dual_funding_channel_context: Some(self.dual_funding_context),
8911-
interactive_tx_constructor: None,
89128901
interactive_tx_signing_session: Some(signing_session),
89138902
};
89148903

@@ -10032,8 +10021,6 @@ impl<'a, 'b, 'c, ES: Deref, SP: Deref> ReadableArgs<(&'a ES, &'b SP, u32, &'c Ch
1003210021
blocked_monitor_updates: blocked_monitor_updates.unwrap(),
1003310022
is_manual_broadcast: is_manual_broadcast.unwrap_or(false),
1003410023
},
10035-
dual_funding_channel_context: None,
10036-
interactive_tx_constructor: None,
1003710024
interactive_tx_signing_session: None,
1003810025
})
1003910026
}

lightning/src/ln/channelmanager.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8259,10 +8259,9 @@ where
82598259
let tx_constructor = match channel_phase {
82608260
ChannelPhase::UnfundedInboundV2(chan) => chan.interactive_tx_constructor_mut(),
82618261
ChannelPhase::UnfundedOutboundV2(chan) => chan.interactive_tx_constructor_mut(),
8262-
ChannelPhase::Funded(chan) => &mut chan.interactive_tx_constructor,
82638262
_ => try_chan_phase_entry!(self, Err(ChannelError::Close(
82648263
(
8265-
"Got an unexpected tx_signatures message".into(),
8264+
"Got an unexpected tx_abort message".into(),
82668265
ClosureReason::HolderForceClosed { broadcasted_latest_txn: Some(false) },
82678266
))), chan_phase_entry)
82688267
};

0 commit comments

Comments
 (0)