mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-01-30 23:02:15 +00:00
Use a HashSet instead of a TreeSet. Resolves issue 250.
This commit is contained in:
parent
232d2cd51d
commit
cca393eea5
@ -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<Transaction> connectedTransactions = new TreeSet<Transaction>();
|
||||
Set<Transaction> connectedTransactions = new HashSet<Transaction>();
|
||||
for (TransactionInput input : tx.getInputs()) {
|
||||
TransactionInput.ConnectionResult result = input.connect(pool, TransactionInput.ConnectMode.ABORT_ON_CONFLICT);
|
||||
if (result == TransactionInput.ConnectionResult.SUCCESS) {
|
||||
|
Loading…
Reference in New Issue
Block a user