Skip to content

Commit 5e528ff

Browse files
committed
Drop the now-unused push_blockable_mon_update
1 parent c843f68 commit 5e528ff

File tree

1 file changed

+5
-13
lines changed

1 file changed

+5
-13
lines changed

lightning/src/ln/channel.rs

+5-13
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)