Wallet: Fix logging in receivePending().

This commit is contained in:
Andreas Schildbach
2019-03-16 14:10:38 +01:00
parent 36c6c6e3af
commit 533d6eb1a8

View File

@@ -1897,11 +1897,9 @@ public class Wallet extends BaseTaggableObject
}
Coin valueSentToMe = tx.getValueSentToMe(this);
Coin valueSentFromMe = tx.getValueSentFromMe(this);
if (log.isInfoEnabled()) {
log.info(String.format(Locale.US, "Received a pending transaction {} that spends {} from our own wallet," +
" and sends us {}", tx.getTxId(), valueSentFromMe.toFriendlyString(),
valueSentToMe.toFriendlyString()));
}
if (log.isInfoEnabled())
log.info("Received a pending transaction {} that spends {} from our own wallet, and sends us {}",
tx.getTxId(), valueSentFromMe.toFriendlyString(), valueSentToMe.toFriendlyString());
if (tx.getConfidence().getSource().equals(TransactionConfidence.Source.UNKNOWN)) {
log.warn("Wallet received transaction with an unknown source. Consider tagging it!");
}