mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-02-14 11:15:51 +00:00
Expose TransactionBroadcast.random
This commit is contained in:
parent
c7fe06d4c7
commit
483fd8a908
@ -45,8 +45,9 @@ public class TransactionBroadcast {
|
||||
private int minConnections;
|
||||
private int numWaitingFor, numToBroadcastTo;
|
||||
|
||||
// Used for the peers permutation: unit tests replace this to make themselves deterministic.
|
||||
@VisibleForTesting static Random random = new Random();
|
||||
/** Used for shuffling the peers before broadcast: unit tests can replace this to make themselves deterministic. */
|
||||
@VisibleForTesting
|
||||
public static Random random = new Random();
|
||||
private Transaction pinnedTx;
|
||||
|
||||
public TransactionBroadcast(PeerGroup peerGroup, Transaction tx) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user