File tree 1 file changed +5
-13
lines changed
1 file changed +5
-13
lines changed Original file line number Diff line number Diff line change @@ -4449,22 +4449,14 @@ impl<Signer: WriteableEcdsaChannelSigner> Channel<Signer> {
4449
4449
None
4450
4450
}
4451
4451
4452
- /// Pushes a new monitor update into our monitor update queue, returning whether it should be
4453
- /// immediately given to the user for persisting or if it should be held as blocked.
4454
- fn push_blockable_mon_update(&mut self, update: ChannelMonitorUpdate) -> bool {
4452
+ /// Pushes a new monitor update into our monitor update queue, returning it if it should be
4453
+ /// immediately given to the user for persisting or `None` if it should be held as blocked.
4454
+ fn push_ret_blockable_mon_update ( & mut self , update : ChannelMonitorUpdate )
4455
+ -> Option < ChannelMonitorUpdate > {
4455
4456
let release_monitor = self . context . pending_monitor_updates . iter ( ) . all ( |upd| !upd. blocked ) ;
4456
4457
self . context . pending_monitor_updates . push ( PendingChannelMonitorUpdate {
4457
- update, blocked: !release_monitor
4458
+ update, blocked : !release_monitor,
4458
4459
} ) ;
4459
- release_monitor
4460
- }
4461
-
4462
- /// Pushes a new monitor update into our monitor update queue, returning a reference to it if
4463
- /// it should be immediately given to the user for persisting or `None` if it should be held as
4464
- /// blocked.
4465
- fn push_ret_blockable_mon_update(&mut self, update: ChannelMonitorUpdate)
4466
- -> Option<ChannelMonitorUpdate> {
4467
- let release_monitor = self.push_blockable_mon_update(update);
4468
4460
if release_monitor { self . context . pending_monitor_updates . last ( ) . map ( |upd| upd. update . clone ( ) ) } else { None }
4469
4461
}
4470
4462
You can’t perform that action at this time.
0 commit comments