mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-02-07 14:54:15 +00:00
PeerGroup: Don't allow attempts to broadcast to zero peers.
This commit is contained in:
parent
81a9e1e893
commit
a1daaa73be
@ -1171,7 +1171,7 @@ public class PeerGroup extends AbstractIdleService implements TransactionBroadca
|
||||
* of connections to wait for before commencing broadcast.
|
||||
*/
|
||||
public ListenableFuture<Transaction> broadcastTransaction(final Transaction tx) {
|
||||
return broadcastTransaction(tx, getMinBroadcastConnections());
|
||||
return broadcastTransaction(tx, Math.max(1, getMinBroadcastConnections()));
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user