mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-01-31 07:12:17 +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;
|
boolean isDead = false;
|
||||||
// The transactions that we connected inputs to, so we can go back later and move them into the right
|
// 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.
|
// bucket if all their outputs got spent.
|
||||||
Set<Transaction> connectedTransactions = new TreeSet<Transaction>();
|
Set<Transaction> connectedTransactions = new HashSet<Transaction>();
|
||||||
for (TransactionInput input : tx.getInputs()) {
|
for (TransactionInput input : tx.getInputs()) {
|
||||||
TransactionInput.ConnectionResult result = input.connect(pool, TransactionInput.ConnectMode.ABORT_ON_CONFLICT);
|
TransactionInput.ConnectionResult result = input.connect(pool, TransactionInput.ConnectMode.ABORT_ON_CONFLICT);
|
||||||
if (result == TransactionInput.ConnectionResult.SUCCESS) {
|
if (result == TransactionInput.ConnectionResult.SUCCESS) {
|
||||||
|
Loading…
Reference in New Issue
Block a user