mirror of
https://github.com/lightningdevkit/rust-lightning.git
synced 2025-02-24 23:08:36 +01:00
Merge pull request #457 from ariard/2020-01-fix-append-onchain
Fix spurious calls of broadcast_by_local_state
This commit is contained in:
commit
9a02115437
1 changed files with 4 additions and 2 deletions
|
@ -2219,7 +2219,8 @@ impl ChannelMonitor {
|
|||
assert!(local_tx.tx.has_local_sig());
|
||||
match self.key_storage {
|
||||
Storage::Local { ref delayed_payment_base_key, .. } => {
|
||||
append_onchain_update!(self.broadcast_by_local_state(local_tx, delayed_payment_base_key, height));
|
||||
let mut res = self.broadcast_by_local_state(local_tx, delayed_payment_base_key, height);
|
||||
append_onchain_update!(res);
|
||||
},
|
||||
Storage::Watchtower { .. } => { }
|
||||
}
|
||||
|
@ -2242,7 +2243,8 @@ impl ChannelMonitor {
|
|||
assert!(local_tx.tx.has_local_sig());
|
||||
match self.key_storage {
|
||||
Storage::Local { ref delayed_payment_base_key, .. } => {
|
||||
append_onchain_update!(self.broadcast_by_local_state(local_tx, delayed_payment_base_key, height));
|
||||
let mut res = self.broadcast_by_local_state(local_tx, delayed_payment_base_key, height);
|
||||
append_onchain_update!(res);
|
||||
},
|
||||
Storage::Watchtower { .. } => { }
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue