Skip to content

Commit da2c39b

Browse files
committed
f move unwrap to channel.rs, where we have more state info
1 parent 99e82ac commit da2c39b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lightning/src/ln/channel.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6401,7 +6401,7 @@ where
64016401
Ok((closing_transaction, total_fee_satoshis))
64026402
}
64036403

6404-
fn funding_outpoint(&self) -> OutPoint {
6404+
pub fn funding_outpoint(&self) -> OutPoint {
64056405
self.funding.channel_transaction_parameters.funding_outpoint.unwrap()
64066406
}
64076407

lightning/src/ln/channelmanager.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12605,7 +12605,7 @@ where
1260512605
if let hash_map::Entry::Occupied(mut chan_entry) = peer_state.channel_by_id.entry(
1260612606
channel_id) {
1260712607
if let Some(chan) = chan_entry.get_mut().as_funded_mut() {
12608-
let channel_funding_outpoint = chan.funding.get_funding_txo().unwrap();
12608+
let channel_funding_outpoint = chan.funding_outpoint();
1260912609
if let Some((monitor_update, further_update_exists)) = chan.unblock_next_blocked_monitor_update() {
1261012610
log_debug!(logger, "Unlocking monitor updating for channel {} and updating monitor",
1261112611
channel_id);

0 commit comments

Comments
 (0)