From cca393eea5220863dd6c391a48507f6191839edd Mon Sep 17 00:00:00 2001 From: Mike Hearn Date: Fri, 28 Sep 2012 14:57:32 +0200 Subject: [PATCH] Use a HashSet instead of a TreeSet. Resolves issue 250. --- core/src/main/java/com/google/bitcoin/core/Wallet.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {