mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-07-31 20:11:23 +00:00
Wallet: Fix logging in receivePending().
This commit is contained in:
@@ -1897,11 +1897,9 @@ public class Wallet extends BaseTaggableObject
|
|||||||
}
|
}
|
||||||
Coin valueSentToMe = tx.getValueSentToMe(this);
|
Coin valueSentToMe = tx.getValueSentToMe(this);
|
||||||
Coin valueSentFromMe = tx.getValueSentFromMe(this);
|
Coin valueSentFromMe = tx.getValueSentFromMe(this);
|
||||||
if (log.isInfoEnabled()) {
|
if (log.isInfoEnabled())
|
||||||
log.info(String.format(Locale.US, "Received a pending transaction {} that spends {} from our own wallet," +
|
log.info("Received a pending transaction {} that spends {} from our own wallet, and sends us {}",
|
||||||
" and sends us {}", tx.getTxId(), valueSentFromMe.toFriendlyString(),
|
tx.getTxId(), valueSentFromMe.toFriendlyString(), valueSentToMe.toFriendlyString());
|
||||||
valueSentToMe.toFriendlyString()));
|
|
||||||
}
|
|
||||||
if (tx.getConfidence().getSource().equals(TransactionConfidence.Source.UNKNOWN)) {
|
if (tx.getConfidence().getSource().equals(TransactionConfidence.Source.UNKNOWN)) {
|
||||||
log.warn("Wallet received transaction with an unknown source. Consider tagging it!");
|
log.warn("Wallet received transaction with an unknown source. Consider tagging it!");
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user