@@ -3654,7 +3654,7 @@ macro_rules! handle_post_close_monitor_update {
3654
3654
WithContext::from(&$self.logger, Some($counterparty_node_id), Some($channel_id), None);
3655
3655
let in_flight_updates;
3656
3656
let idx;
3657
- handle_new_monitor_update !(
3657
+ handle_new_monitor_update_internal !(
3658
3658
$self,
3659
3659
$funding_txo,
3660
3660
$update,
@@ -3664,7 +3664,6 @@ macro_rules! handle_post_close_monitor_update {
3664
3664
$counterparty_node_id,
3665
3665
in_flight_updates,
3666
3666
idx,
3667
- _internal_outer,
3668
3667
{
3669
3668
// If we get a monitor update for a closed channel
3670
3669
let _ = in_flight_updates.remove(idx);
@@ -3693,7 +3692,7 @@ macro_rules! handle_new_monitor_update_todo_name {
3693
3692
let counterparty_node_id = $chan_context.get_counterparty_node_id();
3694
3693
let in_flight_updates;
3695
3694
let idx;
3696
- handle_new_monitor_update !(
3695
+ handle_new_monitor_update_internal !(
3697
3696
$self,
3698
3697
$funding_txo,
3699
3698
$update,
@@ -3703,19 +3702,18 @@ macro_rules! handle_new_monitor_update_todo_name {
3703
3702
counterparty_node_id,
3704
3703
in_flight_updates,
3705
3704
idx,
3706
- _internal_outer,
3707
3705
{
3708
3706
let _ = in_flight_updates.remove(idx);
3709
3707
}
3710
3708
)
3711
3709
}};
3712
3710
}
3713
3711
3714
- macro_rules! handle_new_monitor_update {
3712
+ macro_rules! handle_new_monitor_update_internal {
3715
3713
(
3716
3714
$self: ident, $funding_txo: expr, $update: expr, $peer_state: expr, $logger: expr,
3717
3715
$chan_id: expr, $counterparty_node_id: expr, $in_flight_updates: ident, $update_idx: ident,
3718
- _internal_outer, $completed: expr
3716
+ $completed: expr
3719
3717
) => {{
3720
3718
$in_flight_updates = &mut $peer_state
3721
3719
.in_flight_monitor_updates
@@ -3760,6 +3758,9 @@ macro_rules! handle_new_monitor_update {
3760
3758
false
3761
3759
}
3762
3760
}};
3761
+ }
3762
+
3763
+ macro_rules! handle_new_monitor_update {
3763
3764
(
3764
3765
$self: ident, $funding_txo: expr, $update: expr, $peer_state_lock: expr, $peer_state: expr,
3765
3766
$per_peer_state_lock: expr, $chan: expr
@@ -3769,7 +3770,7 @@ macro_rules! handle_new_monitor_update {
3769
3770
let counterparty_node_id = $chan.context.get_counterparty_node_id();
3770
3771
let in_flight_updates;
3771
3772
let idx;
3772
- handle_new_monitor_update !(
3773
+ handle_new_monitor_update_internal !(
3773
3774
$self,
3774
3775
$funding_txo,
3775
3776
$update,
@@ -3779,7 +3780,6 @@ macro_rules! handle_new_monitor_update {
3779
3780
counterparty_node_id,
3780
3781
in_flight_updates,
3781
3782
idx,
3782
- _internal_outer,
3783
3783
{
3784
3784
let _ = in_flight_updates.remove(idx);
3785
3785
if in_flight_updates.is_empty() && $chan.blocked_monitor_updates_pending() == 0 {
0 commit comments