File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -7393,6 +7393,7 @@ where
73937393 // to be strictly increasing by one, so decrement it here.
73947394 self.context.latest_monitor_update_id = monitor_update.update_id;
73957395 monitor_update.updates.append(&mut additional_update.updates);
7396+ monitor_update.encoded_channel = Some(self.encode());
73967397 } else {
73977398 let blocked_upd = self.context.blocked_monitor_updates.get(0);
73987399 let new_mon_id = blocked_upd
@@ -7419,7 +7420,6 @@ where
74197420 Vec::new(),
74207421 Vec::new(),
74217422 );
7422- monitor_update.encoded_channel = Some(self.encode());
74237423 UpdateFulfillCommitFetch::NewClaim { monitor_update, htlc_value_msat }
74247424 },
74257425 UpdateFulfillFetch::DuplicateClaim {} => UpdateFulfillCommitFetch::DuplicateClaim {},
@@ -8780,13 +8780,13 @@ where
87808780 };
87818781 macro_rules! return_with_htlcs_to_fail {
87828782 ($htlcs_to_fail: expr) => {
8783+ monitor_update.encoded_channel = Some(self.encode());
87838784 if !release_monitor {
87848785 self.context
87858786 .blocked_monitor_updates
87868787 .push(PendingChannelMonitorUpdate { update: monitor_update });
87878788 return Ok(($htlcs_to_fail, static_invoices, None));
87888789 } else {
8789- monitor_update.encoded_channel = Some(self.encode());
87908790 return Ok(($htlcs_to_fail, static_invoices, Some(monitor_update)));
87918791 }
87928792 };
Original file line number Diff line number Diff line change @@ -3820,6 +3820,9 @@ macro_rules! handle_new_monitor_update {
38203820 ) => {{
38213821 eprintln!("MACRO DEBUG called at {}:{}", file!(), line!());
38223822
3823+ // let mut update = $update;
3824+ // update.encoded_channel = Some($chan.encode());
3825+
38233826 let (update_completed, all_updates_complete) = handle_new_monitor_update_internal(
38243827 $self,
38253828 &mut $peer_state.in_flight_monitor_updates,
You can’t perform that action at this time.
0 commit comments