diff --git a/core/src/main/java/com/google/bitcoin/core/Wallet.java b/core/src/main/java/com/google/bitcoin/core/Wallet.java index 68a85968..1478dd8c 100644 --- a/core/src/main/java/com/google/bitcoin/core/Wallet.java +++ b/core/src/main/java/com/google/bitcoin/core/Wallet.java @@ -1997,7 +1997,7 @@ public class Wallet implements Serializable { boolean isDead = false; // The transactions that we connected inputs to, so we can go back later and move them into the right // bucket if all their outputs got spent. - Set connectedTransactions = new TreeSet(); + Set connectedTransactions = new HashSet(); for (TransactionInput input : tx.getInputs()) { TransactionInput.ConnectionResult result = input.connect(pool, TransactionInput.ConnectMode.ABORT_ON_CONFLICT); if (result == TransactionInput.ConnectionResult.SUCCESS) {