mirror of
https://github.com/bitcoinj/bitcoinj.git
synced 2025-02-24 06:47:54 +01:00
Wallet: Fix logging in receivePending().
This commit is contained in:
parent
6015c0b98d
commit
23fddec3f8
1 changed files with 3 additions and 5 deletions
|
@ -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!");
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue