Skip to content

Commit

Permalink
Use original funding TXO to get channel monitors
Browse files Browse the repository at this point in the history
  • Loading branch information
luckysori authored and Tibo-lg committed Nov 8, 2023
1 parent 43a472c commit f015bc6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lightning/src/ln/channelmanager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8879,7 +8879,7 @@ where
for (_, chan) in peer_state.channel_by_id.iter() {
// Channels that were persisted have to be funded, otherwise they should have been
// discarded.
let funding_txo = chan.context.get_funding_txo().ok_or(DecodeError::InvalidValue)?;
let funding_txo = chan.context.get_original_funding_txo().ok_or(DecodeError::InvalidValue)?;
let monitor = args.channel_monitors.get(&funding_txo)
.expect("We already checked for monitor presence when loading channels");
let mut max_in_flight_update_id = monitor.get_latest_update_id();
Expand Down

0 comments on commit f015bc6

Please sign in to comment.