PeerGroup: Log when broadcastTransaction() guesses the transaction source.

This commit is contained in:
Andreas Schildbach 2016-03-02 11:56:18 +01:00
parent 6dcff5ff55
commit 946bfbee16

View file

@ -2158,6 +2158,7 @@ public class PeerGroup implements TransactionBroadcaster {
// If we don't have a record of where this tx came from already, set it to be ourselves so Peer doesn't end up
// redownloading it from the network redundantly.
if (tx.getConfidence().getSource().equals(TransactionConfidence.Source.UNKNOWN)) {
log.info("Transaction source unknown, setting to SELF: {}", tx.getHashAsString());
tx.getConfidence().setSource(TransactionConfidence.Source.SELF);
}
final TransactionBroadcast broadcast = new TransactionBroadcast(this, tx);