diff --git a/drongo b/drongo index 49654b7c..428054d3 160000 --- a/drongo +++ b/drongo @@ -1 +1 @@ -Subproject commit 49654b7c82d104f7898eff95f0ac3cec96fbc0ec +Subproject commit 428054d375b638bb7e08133fdffe6f1dd438cca9 diff --git a/src/main/java/com/sparrowwallet/sparrow/net/Bwt.java b/src/main/java/com/sparrowwallet/sparrow/net/Bwt.java index b679bd41..c689a5d4 100644 --- a/src/main/java/com/sparrowwallet/sparrow/net/Bwt.java +++ b/src/main/java/com/sparrowwallet/sparrow/net/Bwt.java @@ -58,7 +58,7 @@ public class Bwt { private void start(Collection wallets, CallbackNotifier callback) { List validWallets = wallets.stream().filter(Wallet::isValid).collect(Collectors.toList()); - List outputDescriptors = new ArrayList<>(); + Set outputDescriptors = new LinkedHashSet<>(); for(Wallet wallet : validWallets) { OutputDescriptor receiveOutputDescriptor = OutputDescriptor.getOutputDescriptor(wallet, KeyPurpose.RECEIVE); outputDescriptors.add(receiveOutputDescriptor.toString(false, false)); @@ -89,7 +89,7 @@ public class Bwt { * @param gapLimit desired gap limit beyond last used address * @param callback object receiving notifications */ - private void start(List outputDescriptors, Integer rescanSince, Boolean forceRescan, Integer gapLimit, CallbackNotifier callback) { + private void start(Collection outputDescriptors, Integer rescanSince, Boolean forceRescan, Integer gapLimit, CallbackNotifier callback) { BwtConfig bwtConfig = new BwtConfig(); bwtConfig.network = Network.get() == Network.MAINNET ? "bitcoin" : Network.get().getName(); @@ -188,7 +188,7 @@ public class Bwt { public Boolean createWalletIfMissing; @SerializedName("descriptors") - public List descriptors; + public Collection descriptors; @SerializedName("xpubs") public String xpubs;