3
0
mirror of https://github.com/Qortal/altcoinj.git synced 2025-02-12 02:05:53 +00:00

Improve a log message

This commit is contained in:
Mike Hearn 2012-02-03 14:09:43 +01:00
parent fff2034408
commit c1cb5c10d5

View File

@ -327,9 +327,9 @@ public class Wallet implements Serializable {
BigInteger valueSentToMe = tx.getValueSentToMe(this); BigInteger valueSentToMe = tx.getValueSentToMe(this);
BigInteger valueSentFromMe = tx.getValueSentFromMe(this); BigInteger valueSentFromMe = tx.getValueSentFromMe(this);
if (log.isInfoEnabled()) { if (log.isInfoEnabled()) {
log.info(String.format("Received a pending transaction %s that spends %s BTC and sends us %s BTC", tx.getHashAsString(), log.info(String.format("Received a pending transaction %s that spends %s BTC from our own wallet," +
Utils.bitcoinValueToFriendlyString(valueSentFromMe), " and sends us %s BTC", tx.getHashAsString(), Utils.bitcoinValueToFriendlyString(valueSentFromMe),
Utils.bitcoinValueToFriendlyString(valueSentToMe))); Utils.bitcoinValueToFriendlyString(valueSentToMe)));
} }
// Mark the tx as having been seen but is not yet in the chain. This will normally have been done already by // Mark the tx as having been seen but is not yet in the chain. This will normally have been done already by
@ -924,7 +924,7 @@ public class Wallet implements Serializable {
* wallet. The transaction will be announced to any connected nodes asynchronously. If you would like to know when * wallet. The transaction will be announced to any connected nodes asynchronously. If you would like to know when
* the transaction was successfully sent to at least one node, use * the transaction was successfully sent to at least one node, use
* {@link Wallet#sendCoinsOffline(Address, java.math.BigInteger)} and then {@link PeerGroup#broadcastTransaction(Transaction)} * {@link Wallet#sendCoinsOffline(Address, java.math.BigInteger)} and then {@link PeerGroup#broadcastTransaction(Transaction)}
* on the result to obtain a {@link Future<Transaction>}. * on the result to obtain a {@link java.util.concurrent.Future<Transaction>}.
* *
* @param peerGroup a PeerGroup to use for broadcast or null. * @param peerGroup a PeerGroup to use for broadcast or null.
* @param to Which address to send coins to. * @param to Which address to send coins to.