mirror of
https://github.com/bisq-network/bisq.git
synced 2024-11-19 18:03:12 +01:00
Clone txBroadcastServices so we do not manipulate source list
This commit is contained in:
parent
478e1224e8
commit
33cf657d1d
@ -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…
Reference in New Issue
Block a user