From ddc7f2bee5c4f78e6b39c6e92ee2c40e378b0efd Mon Sep 17 00:00:00 2001 From: Michael Tinker Date: Wed, 25 Oct 2023 14:35:14 -0500 Subject: [PATCH] Disable post-upgrade stake housekeeping (#9475) Signed-off-by: Michael Tinker --- hedera-node/hedera-app/src/test/resources/bootstrap.properties | 3 ++- .../src/main/resources/bootstrap.properties | 3 ++- .../mono/context/properties/BootstrapPropertiesTest.java | 2 +- .../src/test/resources/bootstrap.properties | 3 ++- .../src/test/resources/bootstrap/standard.properties | 3 ++- 5 files changed, 9 insertions(+), 5 deletions(-) diff --git a/hedera-node/hedera-app/src/test/resources/bootstrap.properties b/hedera-node/hedera-app/src/test/resources/bootstrap.properties index eaefd53dae66..28581e5bd8d5 100644 --- a/hedera-node/hedera-app/src/test/resources/bootstrap.properties +++ b/hedera-node/hedera-app/src/test/resources/bootstrap.properties @@ -45,7 +45,8 @@ staking.maxStakeRewarded=5000000000000000000 staking.periodMins=1 staking.rewardBalanceThreshold=0 staking.rewardHistory.numStoredPeriods=365 -staking.startupHelper.recompute=NODE_STAKES,PENDING_REWARDS +# Comma-separated list of { NODE_STAKES, PENDING_REWARDS } +staking.startupHelper.recompute= tokens.storeRelsOnDisk=true hedera.workflows.enabled= # Dynamic properties diff --git a/hedera-node/hedera-mono-service/src/main/resources/bootstrap.properties b/hedera-node/hedera-mono-service/src/main/resources/bootstrap.properties index 467f3cc8dc1b..b3fc1fef5e96 100644 --- a/hedera-node/hedera-mono-service/src/main/resources/bootstrap.properties +++ b/hedera-node/hedera-mono-service/src/main/resources/bootstrap.properties @@ -45,7 +45,8 @@ staking.maxStakeRewarded=650000000000000000 staking.periodMins=1440 staking.rewardBalanceThreshold=8500000000000000 staking.rewardHistory.numStoredPeriods=365 -staking.startupHelper.recompute=NODE_STAKES,PENDING_REWARDS +# Comma-separated list of { NODE_STAKES, PENDING_REWARDS } +staking.startupHelper.recompute= tokens.storeRelsOnDisk=true hedera.workflows.enabled= # Dynamic properties diff --git a/hedera-node/hedera-mono-service/src/test/java/com/hedera/node/app/service/mono/context/properties/BootstrapPropertiesTest.java b/hedera-node/hedera-mono-service/src/test/java/com/hedera/node/app/service/mono/context/properties/BootstrapPropertiesTest.java index eef9ad9cf7fc..2407d96db606 100644 --- a/hedera-node/hedera-mono-service/src/test/java/com/hedera/node/app/service/mono/context/properties/BootstrapPropertiesTest.java +++ b/hedera-node/hedera-mono-service/src/test/java/com/hedera/node/app/service/mono/context/properties/BootstrapPropertiesTest.java @@ -505,7 +505,7 @@ class BootstrapPropertiesTest { entry(STAKING_REWARD_BALANCE_THRESHOLD, 0L), entry(STAKING_REQUIRE_MIN_STAKE_TO_REWARD, false), entry(STAKING_REWARD_HISTORY_NUM_STORED_PERIODS, 365), - entry(STAKING_STARTUP_HELPER_RECOMPUTE, EnumSet.allOf(StakeStartupHelper.RecomputeType.class)), + entry(STAKING_STARTUP_HELPER_RECOMPUTE, EnumSet.noneOf(StakeStartupHelper.RecomputeType.class)), entry(STAKING_PER_HBAR_REWARD_RATE, 6_849L), entry(STAKING_START_THRESH, 25000000000000000L), entry(STAKING_FEES_NODE_REWARD_PERCENT, 0), diff --git a/hedera-node/hedera-mono-service/src/test/resources/bootstrap.properties b/hedera-node/hedera-mono-service/src/test/resources/bootstrap.properties index ccc5c7b30a9d..e54ef8c7ff34 100644 --- a/hedera-node/hedera-mono-service/src/test/resources/bootstrap.properties +++ b/hedera-node/hedera-mono-service/src/test/resources/bootstrap.properties @@ -45,7 +45,8 @@ staking.maxStakeRewarded=5000000000000000000 staking.periodMins=1 staking.rewardBalanceThreshold=0 staking.rewardHistory.numStoredPeriods=365 -staking.startupHelper.recompute=NODE_STAKES,PENDING_REWARDS +# Comma-separated list of { NODE_STAKES, PENDING_REWARDS } +staking.startupHelper.recompute= tokens.storeRelsOnDisk=true hedera.workflows.enabled= # Dynamic properties diff --git a/hedera-node/hedera-mono-service/src/test/resources/bootstrap/standard.properties b/hedera-node/hedera-mono-service/src/test/resources/bootstrap/standard.properties index 9460a2331d4e..b08643ec25be 100644 --- a/hedera-node/hedera-mono-service/src/test/resources/bootstrap/standard.properties +++ b/hedera-node/hedera-mono-service/src/test/resources/bootstrap/standard.properties @@ -45,7 +45,8 @@ staking.maxStakeRewarded=5000000000000000000 staking.periodMins=1440 staking.rewardBalanceThreshold=0 staking.rewardHistory.numStoredPeriods=365 -staking.startupHelper.recompute=NODE_STAKES,PENDING_REWARDS +# Comma-separated list of { NODE_STAKES, PENDING_REWARDS } +staking.startupHelper.recompute= tokens.storeRelsOnDisk=true hedera.workflows.enabled= # Dynamic properties