File tree Expand file tree Collapse file tree 1 file changed +5
-13
lines changed Expand file tree Collapse file tree 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> {
44494449 None
44504450 }
44514451
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 > {
44554456 let release_monitor = self . context . pending_monitor_updates . iter ( ) . all ( |upd| !upd. blocked ) ;
44564457 self . context . pending_monitor_updates . push ( PendingChannelMonitorUpdate {
4457- update, blocked: !release_monitor
4458+ update, blocked : !release_monitor,
44584459 } ) ;
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);
44684460 if release_monitor { self . context . pending_monitor_updates . last ( ) . map ( |upd| upd. update . clone ( ) ) } else { None }
44694461 }
44704462
You can’t perform that action at this time.
0 commit comments