diff --git a/hedera-node/hedera-app-spi/src/main/java/com/hedera/node/app/spi/state/ReadableKVStateBase.java b/hedera-node/hedera-app-spi/src/main/java/com/hedera/node/app/spi/state/ReadableKVStateBase.java index 4d5548365ae4..a5619ad5dd31 100644 --- a/hedera-node/hedera-app-spi/src/main/java/com/hedera/node/app/spi/state/ReadableKVStateBase.java +++ b/hedera-node/hedera-app-spi/src/main/java/com/hedera/node/app/spi/state/ReadableKVStateBase.java @@ -38,7 +38,7 @@ public abstract class ReadableKVStateBase implements ReadableKVState * changed before we got to handle transaction. If the value is "null", this means it was NOT * FOUND when we looked it up. */ - private final Map readCache = new HashMap<>(); + private final Map readCache = Collections.synchronizedMap(new HashMap<>()); private final Set unmodifiableReadKeys = Collections.unmodifiableSet(readCache.keySet());