Bump ElectrumX transaction cache size from 100 to 200

This commit is contained in:
catbref 2020-12-24 16:52:58 +00:00
parent 047627a6e5
commit 35b0ac78b8

View File

@ -101,7 +101,7 @@ public class ElectrumX extends BitcoinyBlockchainProvider {
private Scanner scanner;
private int nextId = 1;
private static final int TX_CACHE_SIZE = 100;
private static final int TX_CACHE_SIZE = 200;
@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