File tree 1 file changed +1
-5
lines changed
1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -2389,11 +2389,7 @@ impl<SP: Deref> ChannelContext<SP> where SP::Target: SignerProvider {
2389
2389
// funding transaction, don't return a funding txo (which prevents providing the
2390
2390
// monitor update to the user, even if we return one).
2391
2391
// See test_duplicate_chan_id and test_pre_lockin_no_chan_closed_update for more.
2392
- let generate_monitor_update = match self.channel_state {
2393
- ChannelState::AwaitingChannelReady(_)|ChannelState::ChannelReady(_)|ChannelState::ShutdownComplete => true,
2394
- _ => false,
2395
- };
2396
- if generate_monitor_update {
2392
+ if !self.channel_state.is_pre_funded_state() {
2397
2393
self.latest_monitor_update_id = CLOSED_CHANNEL_UPDATE_ID;
2398
2394
Some((self.get_counterparty_node_id(), funding_txo, ChannelMonitorUpdate {
2399
2395
update_id: self.latest_monitor_update_id,
You can’t perform that action at this time.
0 commit comments