Skip to content

Commit be84ac4

Browse files
committed
Fixing nit changes
1 parent 77f8725 commit be84ac4

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

lightning/src/chain/chainmonitor.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -402,8 +402,9 @@ where C::Target: chain::Filter,
402402
outpoint: OutPoint { txid, index: idx as u16 },
403403
script_pubkey: output.script_pubkey,
404404
};
405+
log_trace!(self.logger,
406+
"Adding monitoring for spends of outpoint {:?} to the filter", output.outpoint);
405407
chain_source.register_output(output);
406-
log_trace!(self.logger, "Adding monitoring for spends of outpoint {}:{} to the filter", idx, txid);
407408
}
408409
}
409410
}

lightning/src/chain/channelmonitor.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1343,13 +1343,13 @@ impl<Signer: WriteableEcdsaChannelSigner> ChannelMonitor<Signer> {
13431343
/// Loads the funding txo and outputs to watch into the given `chain::Filter` by repeatedly
13441344
/// calling `chain::Filter::register_output` and `chain::Filter::register_tx` until all outputs
13451345
/// have been registered.
1346-
pub fn load_outputs_to_watch<F: Deref , L: Deref>(&self, filter: &F,logger: &L,)
1346+
pub fn load_outputs_to_watch<F: Deref, L: Deref>(&self, filter: &F,logger: &L,)
13471347
where
13481348
F::Target: chain::Filter, L::Target: Logger,
13491349
{
13501350
let lock = self.inner.lock().unwrap();
13511351
filter.register_tx(&lock.get_funding_txo().0.txid, &lock.get_funding_txo().1);
1352-
log_trace!(logger, "registering funding outpoint {:?}" , &lock.get_funding_txo());
1352+
log_trace!(logger, "Registering funding outpoint {:?}" , &lock.get_funding_txo());
13531353
for (txid, outputs) in lock.get_outputs_to_watch().iter() {
13541354
for (index, script_pubkey) in outputs.iter() {
13551355
assert!(*index <= u16::max_value() as u32);
@@ -1358,7 +1358,7 @@ impl<Signer: WriteableEcdsaChannelSigner> ChannelMonitor<Signer> {
13581358
outpoint: OutPoint { txid: *txid, index: *index as u16 },
13591359
script_pubkey: script_pubkey.clone(),
13601360
});
1361-
log_trace!(logger, "Adding monitoring for spends of outpoint {}:{} to the filter", index, txid);
1361+
log_trace!(logger, "Adding monitoring for spends of outpoint {}:{} to the filter", txid, index);
13621362
}
13631363
}
13641364
}

0 commit comments

Comments
 (0)