1
0
mirror of https://github.com/Qortal/qortal.git synced 2025-09-23 04:00:15 +00:00

Increased TX_CACHE_SIZE from 200 to 1000, to speed up loading times on large wallets.

This commit is contained in:
CalDescent
2022-02-11 16:55:29 +00:00
parent a664a6a790
commit dbacfb964b

@@ -103,7 +103,7 @@ public class ElectrumX extends BitcoinyBlockchainProvider {
private Scanner scanner; private Scanner scanner;
private int nextId = 1; private int nextId = 1;
private static final int TX_CACHE_SIZE = 200; private static final int TX_CACHE_SIZE = 1000;
@SuppressWarnings("serial") @SuppressWarnings("serial")
private final Map<String, BitcoinyTransaction> transactionCache = Collections.synchronizedMap(new LinkedHashMap<>(TX_CACHE_SIZE + 1, 0.75F, true) { private final Map<String, BitcoinyTransaction> transactionCache = Collections.synchronizedMap(new LinkedHashMap<>(TX_CACHE_SIZE + 1, 0.75F, true) {
// This method is called just after a new entry has been added // This method is called just after a new entry has been added