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

View File

@ -103,7 +103,7 @@ public class ElectrumX extends BitcoinyBlockchainProvider {
private Scanner scanner;
private int nextId = 1;
private static final int TX_CACHE_SIZE = 200;
private static final int TX_CACHE_SIZE = 1000;
@SuppressWarnings("serial")
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