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