@@ -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);
@@ -3702,7 +3701,7 @@ macro_rules! handle_new_monitor_update_actions_processed_later {
3702
3701
let counterparty_node_id = $chan_context.get_counterparty_node_id();
3703
3702
let in_flight_updates;
3704
3703
let idx;
3705
- handle_new_monitor_update !(
3704
+ handle_new_monitor_update_internal !(
3706
3705
$self,
3707
3706
$funding_txo,
3708
3707
$update,
@@ -3712,19 +3711,18 @@ macro_rules! handle_new_monitor_update_actions_processed_later {
3712
3711
counterparty_node_id,
3713
3712
in_flight_updates,
3714
3713
idx,
3715
- _internal_outer,
3716
3714
{
3717
3715
let _ = in_flight_updates.remove(idx);
3718
3716
}
3719
3717
)
3720
3718
}};
3721
3719
}
3722
3720
3723
- macro_rules! handle_new_monitor_update {
3721
+ macro_rules! handle_new_monitor_update_internal {
3724
3722
(
3725
3723
$self: ident, $funding_txo: expr, $update: expr, $peer_state: expr, $logger: expr,
3726
3724
$chan_id: expr, $counterparty_node_id: expr, $in_flight_updates: ident, $update_idx: ident,
3727
- _internal_outer, $completed: expr
3725
+ $completed: expr
3728
3726
) => {{
3729
3727
$in_flight_updates = &mut $peer_state
3730
3728
.in_flight_monitor_updates
@@ -3769,6 +3767,9 @@ macro_rules! handle_new_monitor_update {
3769
3767
false
3770
3768
}
3771
3769
}};
3770
+ }
3771
+
3772
+ macro_rules! handle_new_monitor_update {
3772
3773
(
3773
3774
$self: ident, $funding_txo: expr, $update: expr, $peer_state_lock: expr, $peer_state: expr,
3774
3775
$per_peer_state_lock: expr, $chan: expr
@@ -3778,7 +3779,7 @@ macro_rules! handle_new_monitor_update {
3778
3779
let counterparty_node_id = $chan.context.get_counterparty_node_id();
3779
3780
let in_flight_updates;
3780
3781
let idx;
3781
- handle_new_monitor_update !(
3782
+ handle_new_monitor_update_internal !(
3782
3783
$self,
3783
3784
$funding_txo,
3784
3785
$update,
@@ -3788,7 +3789,6 @@ macro_rules! handle_new_monitor_update {
3788
3789
counterparty_node_id,
3789
3790
in_flight_updates,
3790
3791
idx,
3791
- _internal_outer,
3792
3792
{
3793
3793
let _ = in_flight_updates.remove(idx);
3794
3794
if in_flight_updates.is_empty() && $chan.blocked_monitor_updates_pending() == 0 {
0 commit comments