@@ -3684,7 +3684,7 @@ macro_rules! handle_post_close_monitor_update {
3684
3684
WithContext::from(&$self.logger, Some($counterparty_node_id), Some($channel_id), None);
3685
3685
let in_flight_updates;
3686
3686
let idx;
3687
- handle_new_monitor_update !(
3687
+ handle_new_monitor_update_internal !(
3688
3688
$self,
3689
3689
$funding_txo,
3690
3690
$update,
@@ -3694,7 +3694,6 @@ macro_rules! handle_post_close_monitor_update {
3694
3694
$counterparty_node_id,
3695
3695
in_flight_updates,
3696
3696
idx,
3697
- _internal_outer,
3698
3697
{
3699
3698
let _ = in_flight_updates.remove(idx);
3700
3699
if in_flight_updates.is_empty() {
@@ -3731,7 +3730,7 @@ macro_rules! handle_new_monitor_update_actions_deferred {
3731
3730
let counterparty_node_id = $chan_context.get_counterparty_node_id();
3732
3731
let in_flight_updates;
3733
3732
let idx;
3734
- handle_new_monitor_update !(
3733
+ handle_new_monitor_update_internal !(
3735
3734
$self,
3736
3735
$funding_txo,
3737
3736
$update,
@@ -3741,19 +3740,18 @@ macro_rules! handle_new_monitor_update_actions_deferred {
3741
3740
counterparty_node_id,
3742
3741
in_flight_updates,
3743
3742
idx,
3744
- _internal_outer,
3745
3743
{
3746
3744
let _ = in_flight_updates.remove(idx);
3747
3745
}
3748
3746
)
3749
3747
}};
3750
3748
}
3751
3749
3752
- macro_rules! handle_new_monitor_update {
3750
+ macro_rules! handle_new_monitor_update_internal {
3753
3751
(
3754
3752
$self: ident, $funding_txo: expr, $update: expr, $peer_state: expr, $logger: expr,
3755
3753
$chan_id: expr, $counterparty_node_id: expr, $in_flight_updates: ident, $update_idx: ident,
3756
- _internal_outer, $completed: expr
3754
+ $completed: expr
3757
3755
) => {{
3758
3756
$in_flight_updates = &mut $peer_state
3759
3757
.in_flight_monitor_updates
@@ -3798,6 +3796,9 @@ macro_rules! handle_new_monitor_update {
3798
3796
false
3799
3797
}
3800
3798
}};
3799
+ }
3800
+
3801
+ macro_rules! handle_new_monitor_update {
3801
3802
(
3802
3803
$self: ident, $funding_txo: expr, $update: expr, $peer_state_lock: expr, $peer_state: expr,
3803
3804
$per_peer_state_lock: expr, $chan: expr
@@ -3807,7 +3808,7 @@ macro_rules! handle_new_monitor_update {
3807
3808
let counterparty_node_id = $chan.context.get_counterparty_node_id();
3808
3809
let in_flight_updates;
3809
3810
let idx;
3810
- handle_new_monitor_update !(
3811
+ handle_new_monitor_update_internal !(
3811
3812
$self,
3812
3813
$funding_txo,
3813
3814
$update,
@@ -3817,7 +3818,6 @@ macro_rules! handle_new_monitor_update {
3817
3818
counterparty_node_id,
3818
3819
in_flight_updates,
3819
3820
idx,
3820
- _internal_outer,
3821
3821
{
3822
3822
let _ = in_flight_updates.remove(idx);
3823
3823
if in_flight_updates.is_empty() && $chan.blocked_monitor_updates_pending() == 0 {
0 commit comments