diff --git a/infrastructure/ssz/src/main/java/tech/pegasys/teku/infrastructure/ssz/cache/ArrayIntCache.java b/infrastructure/ssz/src/main/java/tech/pegasys/teku/infrastructure/ssz/cache/ArrayIntCache.java index 8614ac8b716..f5190b45436 100644 --- a/infrastructure/ssz/src/main/java/tech/pegasys/teku/infrastructure/ssz/cache/ArrayIntCache.java +++ b/infrastructure/ssz/src/main/java/tech/pegasys/teku/infrastructure/ssz/cache/ArrayIntCache.java @@ -32,7 +32,7 @@ public final class ArrayIntCache implements IntCache { private final int initSize; public ArrayIntCache() { - this(16); + this(DEFAULT_INITIAL_CACHE_SIZE); } public ArrayIntCache(int initialSize) { @@ -90,7 +90,7 @@ public IntCache copy() { @Override public IntCache transfer() { IntCache copy = copy(); - this.values = createArray(DEFAULT_INITIAL_CACHE_SIZE); + this.values = createArray(initSize); return copy; }