@@ -1877,6 +1877,7 @@ where
1877
1877
holder_commitment_point,
1878
1878
#[cfg(splicing)]
1879
1879
pending_splice: None,
1880
+ quiescent_action: None,
1880
1881
};
1881
1882
let res = funded_channel.initial_commitment_signed_v2(msg, best_block, signer_provider, logger)
1882
1883
.map(|monitor| (Some(monitor), None))
@@ -2751,12 +2752,6 @@ where
2751
2752
/// If we can't release a [`ChannelMonitorUpdate`] until some external action completes, we
2752
2753
/// store it here and only release it to the `ChannelManager` once it asks for it.
2753
2754
blocked_monitor_updates: Vec<PendingChannelMonitorUpdate>,
2754
-
2755
- /// Once we become quiescent, if we're the initiator, there's some action we'll want to take.
2756
- /// This keeps track of that action. Note that if we become quiescent and we're not the
2757
- /// initiator we may be able to merge this action into what the counterparty wanted to do (e.g.
2758
- /// in the case of splicing).
2759
- post_quiescence_action: Option<QuiescentAction>,
2760
2755
}
2761
2756
2762
2757
/// A channel struct implementing this trait can receive an initial counterparty commitment
@@ -3331,8 +3326,6 @@ where
3331
3326
blocked_monitor_updates: Vec::new(),
3332
3327
3333
3328
is_manual_broadcast: false,
3334
-
3335
- post_quiescence_action: None,
3336
3329
};
3337
3330
3338
3331
Ok((funding, channel_context))
@@ -3569,8 +3562,6 @@ where
3569
3562
blocked_monitor_updates: Vec::new(),
3570
3563
local_initiated_shutdown: None,
3571
3564
is_manual_broadcast: false,
3572
-
3573
- post_quiescence_action: None,
3574
3565
};
3575
3566
3576
3567
Ok((funding, channel_context))
@@ -6103,6 +6094,12 @@ where
6103
6094
/// Info about an in-progress, pending splice (if any), on the pre-splice channel
6104
6095
#[cfg(splicing)]
6105
6096
pending_splice: Option<PendingSplice>,
6097
+
6098
+ /// Once we become quiescent, if we're the initiator, there's some action we'll want to take.
6099
+ /// This keeps track of that action. Note that if we become quiescent and we're not the
6100
+ /// initiator we may be able to merge this action into what the counterparty wanted to do (e.g.
6101
+ /// in the case of splicing).
6102
+ quiescent_action: Option<QuiescentAction>,
6106
6103
}
6107
6104
6108
6105
#[cfg(splicing)]
@@ -11579,11 +11576,11 @@ where
11579
11576
"Channel is not in a live state to propose quiescence".to_owned()
11580
11577
));
11581
11578
}
11582
- if self.context.post_quiescence_action .is_some() {
11579
+ if self.quiescent_action .is_some() {
11583
11580
return Err(ChannelError::Ignore("Channel is already quiescing".to_owned()));
11584
11581
}
11585
11582
11586
- self.context.post_quiescence_action = Some(action);
11583
+ self.quiescent_action = Some(action);
11587
11584
if self.context.channel_state.is_quiescent()
11588
11585
|| self.context.channel_state.is_awaiting_quiescence()
11589
11586
|| self.context.channel_state.is_local_stfu_sent()
@@ -11705,7 +11702,7 @@ where
11705
11702
);
11706
11703
11707
11704
if is_holder_quiescence_initiator {
11708
- match self.context.post_quiescence_action .take() {
11705
+ match self.quiescent_action .take() {
11709
11706
None => {
11710
11707
debug_assert!(false);
11711
11708
return Err(ChannelError::WarnAndDisconnect(
@@ -12084,6 +12081,7 @@ where
12084
12081
holder_commitment_point,
12085
12082
#[cfg(splicing)]
12086
12083
pending_splice: None,
12084
+ quiescent_action: None,
12087
12085
};
12088
12086
12089
12087
let need_channel_ready = channel.check_get_channel_ready(0, logger).is_some()
@@ -12370,6 +12368,7 @@ where
12370
12368
holder_commitment_point,
12371
12369
#[cfg(splicing)]
12372
12370
pending_splice: None,
12371
+ quiescent_action: None,
12373
12372
};
12374
12373
let need_channel_ready = channel.check_get_channel_ready(0, logger).is_some()
12375
12374
|| channel.context.signer_pending_channel_ready;
@@ -14022,13 +14021,12 @@ where
14022
14021
14023
14022
blocked_monitor_updates: blocked_monitor_updates.unwrap(),
14024
14023
is_manual_broadcast: is_manual_broadcast.unwrap_or(false),
14025
-
14026
- post_quiescence_action: None,
14027
14024
},
14028
14025
interactive_tx_signing_session,
14029
14026
holder_commitment_point,
14030
14027
#[cfg(splicing)]
14031
14028
pending_splice: None,
14029
+ quiescent_action: None,
14032
14030
})
14033
14031
}
14034
14032
}
0 commit comments