Skip to content

Commit e5f51a7

Browse files
luckysoriTibo-lg
authored andcommitted
Use original funding TXO to get channel monitors
1 parent ca993f8 commit e5f51a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lightning/src/ln/channelmanager.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8879,7 +8879,7 @@ where
88798879
for (_, chan) in peer_state.channel_by_id.iter() {
88808880
// Channels that were persisted have to be funded, otherwise they should have been
88818881
// discarded.
8882-
let funding_txo = chan.context.get_funding_txo().ok_or(DecodeError::InvalidValue)?;
8882+
let funding_txo = chan.context.get_original_funding_txo().ok_or(DecodeError::InvalidValue)?;
88838883
let monitor = args.channel_monitors.get(&funding_txo)
88848884
.expect("We already checked for monitor presence when loading channels");
88858885
let mut max_in_flight_update_id = monitor.get_latest_update_id();

0 commit comments

Comments
 (0)