From f81e086d57f75e89239adea04ef83c0e2e66949c Mon Sep 17 00:00:00 2001 From: Neeharika-Sompalli Date: Wed, 24 Jan 2024 10:19:58 -0600 Subject: [PATCH] fix ServicesState class id Signed-off-by: Neeharika-Sompalli --- .../com/hedera/node/app/state/merkle/MerkleHederaState.java | 4 ++-- .../java/com/hedera/node/app/service/mono/ServicesState.java | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/hedera-node/hedera-app/src/main/java/com/hedera/node/app/state/merkle/MerkleHederaState.java b/hedera-node/hedera-app/src/main/java/com/hedera/node/app/state/merkle/MerkleHederaState.java index 544fed730731..686a642aa0e5 100644 --- a/hedera-node/hedera-app/src/main/java/com/hedera/node/app/state/merkle/MerkleHederaState.java +++ b/hedera-node/hedera-app/src/main/java/com/hedera/node/app/state/merkle/MerkleHederaState.java @@ -110,10 +110,10 @@ public class MerkleHederaState extends PartialNaryMerkleInternal implements Merk */ private static final long DO_NOT_USE_IN_REAL_LIFE_CLASS_ID = 0x0000deadbeef0000L; - private static final long CLASS_ID = 0x2de3ead3caf06392L; + // private static final long CLASS_ID = 0x2de3ead3caf06392L; // Uncomment the following class ID to run a mono -> modular state migration // NOTE: also change class ID of ServicesState - // private static final long CLASS_ID = 0x8e300b0dfdafbb1aL; + private static final long CLASS_ID = 0x8e300b0dfdafbb1aL; private static final int VERSION_1 = 30; private static final int CURRENT_VERSION = VERSION_1; diff --git a/hedera-node/hedera-mono-service/src/main/java/com/hedera/node/app/service/mono/ServicesState.java b/hedera-node/hedera-mono-service/src/main/java/com/hedera/node/app/service/mono/ServicesState.java index 0871ef998325..333022ae9d50 100644 --- a/hedera-node/hedera-mono-service/src/main/java/com/hedera/node/app/service/mono/ServicesState.java +++ b/hedera-node/hedera-mono-service/src/main/java/com/hedera/node/app/service/mono/ServicesState.java @@ -115,10 +115,10 @@ public class ServicesState extends PartialNaryMerkleInternal implements MerkleInternal, SwirldState, StateChildrenProvider { private static final Logger log = LogManager.getLogger(ServicesState.class); - private static final long RUNTIME_CONSTRUCTABLE_ID = 0x8e300b0dfdafbb1aL; + // private static final long RUNTIME_CONSTRUCTABLE_ID = 0x8e300b0dfdafbb1aL; // Uncomment the following class ID to run a mono -> modular state migration // NOTE: also change class ID of MerkleHederaState - // private static final long RUNTIME_CONSTRUCTABLE_ID = 0x8e300b0dfdafbb1bL; + private static final long RUNTIME_CONSTRUCTABLE_ID = 0x8e300b0dfdafbb1bL; public static final ImmutableHash EMPTY_HASH = new ImmutableHash(new byte[DigestType.SHA_384.digestLength()]); // Only over-written when Platform deserializes a legacy version of the state