Improve tx processing log to show when we have a relevant input/output to the wallet (#4172)

This commit is contained in:
Chris Stewart 2022-03-08 11:05:32 -06:00 committed by GitHub
parent aeb3169884
commit 1072078d7c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -44,8 +44,11 @@ private[bitcoins] trait TransactionProcessing extends WalletLogger {
receivedSpendingInfoDbsOpt = None,
spentSpendingInfoDbsOpt = None)
} yield {
logger.debug(
s"Finished processing of transaction=${transaction.txIdBE.hex}. Relevant incomingTXOs=${result.updatedIncoming.length}, outgoingTXOs=${result.updatedOutgoing.length}")
if (result.updatedIncoming.nonEmpty || result.updatedOutgoing.nonEmpty) {
logger.info(
s"Finished processing of transaction=${transaction.txIdBE.hex}. Relevant incomingTXOs=${result.updatedIncoming.length}, outgoingTXOs=${result.updatedOutgoing.length}")
}
this
}
}