diff --git a/hedera-node/hedera-network-admin-service-impl/src/main/java/com/hedera/node/app/service/networkadmin/impl/FreezeServiceImpl.java b/hedera-node/hedera-network-admin-service-impl/src/main/java/com/hedera/node/app/service/networkadmin/impl/FreezeServiceImpl.java index 4472b0646599..c24a58fc5ce6 100644 --- a/hedera-node/hedera-network-admin-service-impl/src/main/java/com/hedera/node/app/service/networkadmin/impl/FreezeServiceImpl.java +++ b/hedera-node/hedera-network-admin-service-impl/src/main/java/com/hedera/node/app/service/networkadmin/impl/FreezeServiceImpl.java @@ -55,9 +55,13 @@ public Set statesToCreate() { public void migrate(@NonNull final MigrationContext ctx) { // Reset the upgrade file hash to empty // It should always be empty at genesis or after an upgrade, to indicate that no upgrade is in progress - // Nothing in state can ever be null, so use Bytes.EMPTY to indicate an empty hash + // Nothing in state can ever be null, so use Type.DEFAULT to indicate an empty hash final var upgradeFileHashKeyState = ctx.newStates().getSingleton(UPGRADE_FILE_HASH_KEY); upgradeFileHashKeyState.put(ProtoBytes.DEFAULT); + final var freezeTimeKeyState = ctx.newStates().getSingleton(FREEZE_TIME_KEY); + freezeTimeKeyState.put(Timestamp.DEFAULT); + final var lastFrozenTimeKeyState = ctx.newStates().getSingleton(LAST_FROZEN_TIME_KEY); + lastFrozenTimeKeyState.put(Timestamp.DEFAULT); } }; }