Skip to content

Commit 17923d4

Browse files
committed
Rephrasing logging messages
1 parent f48c8a5 commit 17923d4

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

lightning/src/chain/chainmonitor.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ where C::Target: chain::Filter,
403403
script_pubkey: output.script_pubkey,
404404
};
405405
chain_source.register_output(output);
406-
log_trace!(self.logger, "Adding txid {} to the filter", txid);
406+
log_trace!(self.logger, "Adding an outpoint with txid {} to the filter", txid);
407407
}
408408
}
409409
}

lightning/src/chain/channelmonitor.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1347,6 +1347,7 @@ impl<Signer: WriteableEcdsaChannelSigner> ChannelMonitor<Signer> {
13471347
where
13481348
F::Target: chain::Filter, L::Target: Logger,
13491349
{
1350+
log_trace!(logger, "registering transaction outputs");
13501351
let lock = self.inner.lock().unwrap();
13511352
filter.register_tx(&lock.get_funding_txo().0.txid, &lock.get_funding_txo().1);
13521353
for (txid, outputs) in lock.get_outputs_to_watch().iter() {
@@ -1357,7 +1358,7 @@ impl<Signer: WriteableEcdsaChannelSigner> ChannelMonitor<Signer> {
13571358
outpoint: OutPoint { txid: *txid, index: *index as u16 },
13581359
script_pubkey: script_pubkey.clone(),
13591360
});
1360-
log_trace!(logger, "Adding txid {} to the filter", txid);
1361+
log_trace!(logger, "Adding an outpoint with txid {} to the filter", txid);
13611362
}
13621363
}
13631364
}
@@ -3396,11 +3397,11 @@ impl<Signer: WriteableEcdsaChannelSigner> ChannelMonitorImpl<Signer> {
33963397

33973398
if height > self.best_block.height() {
33983399
self.best_block = BestBlock::new(block_hash, height);
3399-
log_trace!(logger, "New best_block of height {} has been found and updated", height);
3400+
log_trace!(logger, "Connecting new block {} at height {}", block_hash, height);
34003401
self.block_confirmed(height, block_hash, vec![], vec![], vec![], &broadcaster, &fee_estimator, &logger)
34013402
} else if block_hash != self.best_block.block_hash() {
34023403
self.best_block = BestBlock::new(block_hash, height);
3403-
log_trace!(logger, "New best_block of block hash {} has been found and updated", block_hash);
3404+
log_trace!(logger, "New block of block hash {} has been found and updated", block_hash);
34043405
self.onchain_events_awaiting_threshold_conf.retain(|ref entry| entry.height <= height);
34053406
self.onchain_tx_handler.block_disconnected(height + 1, broadcaster, fee_estimator, logger);
34063407
Vec::new()

0 commit comments

Comments
 (0)