mirror of
https://github.com/sparrowwallet/drongo.git
synced 2024-12-25 17:46:44 +00:00
ensure selected utxo sets retain stable ordering
This commit is contained in:
parent
20ec0f95fb
commit
3131b265a5
1 changed files with 1 additions and 1 deletions
|
@ -932,7 +932,7 @@ public class Wallet extends Persistable implements Comparable<Wallet> {
|
|||
Map<BlockTransactionHashIndex, WalletNode> utxos = getWalletUtxos(includeSpentMempoolOutputs);
|
||||
for(Collection<BlockTransactionHashIndex> selectedInputs : selectedInputSets) {
|
||||
total += selectedInputs.stream().mapToLong(BlockTransactionHashIndex::getValue).sum();
|
||||
Map<BlockTransactionHashIndex, WalletNode> selectedInputsMap = new HashMap<>(utxos);
|
||||
Map<BlockTransactionHashIndex, WalletNode> selectedInputsMap = new TreeMap<>(utxos);
|
||||
selectedInputsMap.keySet().retainAll(selectedInputs);
|
||||
selectedInputSetsList.add(selectedInputsMap);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue