mirror of
https://github.com/bitcoinj/bitcoinj.git
synced 2025-02-24 14:50:57 +01:00
PeerGroup: Log when broadcastTransaction() guesses the transaction source.
This commit is contained in:
parent
6dcff5ff55
commit
946bfbee16
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue