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 @@ -4440,22 +4440,14 @@ impl<Signer: WriteableEcdsaChannelSigner> Channel<Signer> {
4440
4440
None
4441
4441
}
4442
4442
4443
- /// Pushes a new monitor update into our monitor update queue, returning whether it should be
4444
- /// immediately given to the user for persisting or if it should be held as blocked.
4445
- fn push_blockable_mon_update ( & mut self , update : ChannelMonitorUpdate ) -> bool {
4443
+ /// Pushes a new monitor update into our monitor update queue, returning it if it should be
4444
+ /// immediately given to the user for persisting or `None` if it should be held as blocked.
4445
+ fn push_ret_blockable_mon_update ( & mut self , update : ChannelMonitorUpdate )
4446
+ -> Option < ChannelMonitorUpdate > {
4446
4447
let release_monitor = self . context . pending_monitor_updates . iter ( ) . all ( |upd| !upd. blocked ) ;
4447
4448
self . context . pending_monitor_updates . push ( PendingChannelMonitorUpdate {
4448
- update, blocked : !release_monitor
4449
+ update, blocked : !release_monitor,
4449
4450
} ) ;
4450
- release_monitor
4451
- }
4452
-
4453
- /// Pushes a new monitor update into our monitor update queue, returning a reference to it if
4454
- /// it should be immediately given to the user for persisting or `None` if it should be held as
4455
- /// blocked.
4456
- fn push_ret_blockable_mon_update ( & mut self , update : ChannelMonitorUpdate )
4457
- -> Option < ChannelMonitorUpdate > {
4458
- let release_monitor = self . push_blockable_mon_update ( update) ;
4459
4451
if release_monitor { self . context . pending_monitor_updates . last ( ) . map ( |upd| upd. update . clone ( ) ) } else { None }
4460
4452
}
4461
4453
You can’t perform that action at this time.
0 commit comments