Skip to content

Commit 70bed37

Browse files
author
Antoine Riard
committed
Fix spurious calls of broadcast_by_local_state
1 parent 09d2a71 commit 70bed37

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lightning/src/ln/channelmonitor.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2220,7 +2220,8 @@ impl ChannelMonitor {
22202220
assert!(local_tx.tx.has_local_sig());
22212221
match self.key_storage {
22222222
Storage::Local { ref delayed_payment_base_key, .. } => {
2223-
append_onchain_update!(self.broadcast_by_local_state(local_tx, delayed_payment_base_key, height));
2223+
let mut res = self.broadcast_by_local_state(local_tx, delayed_payment_base_key, height);
2224+
append_onchain_update!(res);
22242225
},
22252226
Storage::Watchtower { .. } => { }
22262227
}
@@ -2243,7 +2244,8 @@ impl ChannelMonitor {
22432244
assert!(local_tx.tx.has_local_sig());
22442245
match self.key_storage {
22452246
Storage::Local { ref delayed_payment_base_key, .. } => {
2246-
append_onchain_update!(self.broadcast_by_local_state(local_tx, delayed_payment_base_key, height));
2247+
let mut res = self.broadcast_by_local_state(local_tx, delayed_payment_base_key, height);
2248+
append_onchain_update!(res);
22472249
},
22482250
Storage::Watchtower { .. } => { }
22492251
}

0 commit comments

Comments
 (0)