Skip to content

Commit c8bbd68

Browse files
committed
f - Rename new_outputs to has_new_outputs_to_watch
1 parent 582f990 commit c8bbd68

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lightning/src/chain/channelmonitor.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -214,12 +214,12 @@ impl<ChanSigner: ChannelKeys, C: Deref, T: Deref, F: Deref, L: Deref> ChainMonit
214214
/// [`chain::Watch::release_pending_htlc_updates`]: ../../chain/trait.Watch.html#tymethod.release_pending_htlc_updates
215215
/// [`chain::Notify`]: ../../chain/trait.Notify.html
216216
pub fn block_connected(&self, header: &BlockHeader, txdata: &[(usize, &Transaction)], height: u32) -> bool {
217-
let mut new_outputs = false;
217+
let mut has_new_outputs_to_watch = false;
218218
{
219219
let mut monitors = self.monitors.lock().unwrap();
220220
for monitor in monitors.values_mut() {
221221
let mut txn_outputs = monitor.block_connected(header, txdata, height, &*self.broadcaster, &*self.fee_estimator, &*self.logger);
222-
new_outputs |= !txn_outputs.is_empty();
222+
has_new_outputs_to_watch |= !txn_outputs.is_empty();
223223

224224
if let Some(ref chain_source) = self.chain_source {
225225
for (txid, outputs) in txn_outputs.drain(..) {
@@ -230,7 +230,7 @@ impl<ChanSigner: ChannelKeys, C: Deref, T: Deref, F: Deref, L: Deref> ChainMonit
230230
}
231231
}
232232
}
233-
new_outputs
233+
has_new_outputs_to_watch
234234
}
235235

236236
/// Dispatches to per-channel monitors, which are responsible for updating their on-chain view

0 commit comments

Comments
 (0)