mirror of
https://github.com/bisq-network/bisq.git
synced 2025-02-24 23:18:17 +01:00
Clone txBroadcastServices so we do not manipulate source list
This commit is contained in:
parent
478e1224e8
commit
33cf657d1d
1 changed files with 2 additions and 1 deletions
|
@ -35,6 +35,7 @@ import com.google.common.util.concurrent.ListenableFuture;
|
|||
import com.google.common.util.concurrent.ListeningExecutorService;
|
||||
import com.google.common.util.concurrent.MoreExecutors;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Random;
|
||||
|
||||
|
@ -72,7 +73,7 @@ public class MemPoolSpaceTxBroadcaster {
|
|||
String txIdToSend = tx.getTxId().toString();
|
||||
String rawTx = Utils.HEX.encode(tx.bitcoinSerialize(true));
|
||||
|
||||
List<String> txBroadcastServices = preferences.getDefaultTxBroadcastServices();
|
||||
List<String> txBroadcastServices = new ArrayList<>(preferences.getDefaultTxBroadcastServices());
|
||||
// Broadcast to first service
|
||||
String serviceAddress = broadcastTx(txIdToSend, rawTx, txBroadcastServices);
|
||||
if (serviceAddress != null) {
|
||||
|
|
Loading…
Add table
Reference in a new issue