diff --git a/src/main/java/com/sparrowwallet/drongo/wallet/Wallet.java b/src/main/java/com/sparrowwallet/drongo/wallet/Wallet.java index 6d8f83c..2904b79 100644 --- a/src/main/java/com/sparrowwallet/drongo/wallet/Wallet.java +++ b/src/main/java/com/sparrowwallet/drongo/wallet/Wallet.java @@ -26,7 +26,7 @@ public class Wallet { private ScriptType scriptType; private Policy defaultPolicy; private List keystores = new ArrayList<>(); - private final Set purposeNodes = new TreeSet<>(); + private final TreeSet purposeNodes = new TreeSet<>(); private final Map transactions = new HashMap<>(); private Integer storedBlockHeight; diff --git a/src/main/java/com/sparrowwallet/drongo/wallet/WalletNode.java b/src/main/java/com/sparrowwallet/drongo/wallet/WalletNode.java index 21941d6..60f749a 100644 --- a/src/main/java/com/sparrowwallet/drongo/wallet/WalletNode.java +++ b/src/main/java/com/sparrowwallet/drongo/wallet/WalletNode.java @@ -10,8 +10,8 @@ import java.util.stream.Collectors; public class WalletNode implements Comparable { private final String derivationPath; private String label; - private Set children = new TreeSet<>(); - private Set transactionOutputs = new TreeSet<>(); + private TreeSet children = new TreeSet<>(); + private TreeSet transactionOutputs = new TreeSet<>(); private transient KeyPurpose keyPurpose; private transient int index = -1; @@ -90,7 +90,7 @@ public class WalletNode implements Comparable { return children == null ? null : Collections.unmodifiableSet(children); } - public void setChildren(Set children) { + public void setChildren(TreeSet children) { this.children = children; } @@ -98,7 +98,7 @@ public class WalletNode implements Comparable { return transactionOutputs == null ? null : Collections.unmodifiableSet(transactionOutputs); } - public void setTransactionOutputs(Set transactionOutputs) { + public void setTransactionOutputs(TreeSet transactionOutputs) { this.transactionOutputs = transactionOutputs; }