From c3080cfa3047485d0379bce5efc41c85dbad4dd5 Mon Sep 17 00:00:00 2001 From: Derek Riley Date: Mon, 21 Oct 2024 12:09:24 -0400 Subject: [PATCH] spotless Signed-off-by: Derek Riley --- .../hedera/node/app/tss/handlers/TssVoteHandler.java | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/hedera-node/hedera-app/src/main/java/com/hedera/node/app/tss/handlers/TssVoteHandler.java b/hedera-node/hedera-app/src/main/java/com/hedera/node/app/tss/handlers/TssVoteHandler.java index 7c4e08437aae..faace199a5b9 100644 --- a/hedera-node/hedera-app/src/main/java/com/hedera/node/app/tss/handlers/TssVoteHandler.java +++ b/hedera-node/hedera-app/src/main/java/com/hedera/node/app/tss/handlers/TssVoteHandler.java @@ -29,7 +29,6 @@ import com.hedera.node.app.spi.workflows.PreHandleContext; import com.hedera.node.app.spi.workflows.TransactionHandler; import com.hedera.node.app.tss.stores.WritableTssBaseStore; -import com.hedera.node.config.data.TssConfig; import com.hedera.pbj.runtime.io.buffer.Bytes; import com.swirlds.platform.state.service.ReadableRosterStore; import edu.umd.cs.findbugs.annotations.NonNull; @@ -45,7 +44,7 @@ @Singleton public class TssVoteHandler implements TransactionHandler { - public static final double THRESHOLD_ONE_HALF = 2.0; + public static final double THRESHOLD_ONE_THIRD = 3.0; @Inject public TssVoteHandler() { @@ -74,13 +73,8 @@ public void handle(@NonNull final HandleContext context) throws HandleException return; } - tssBaseStore.put(tssVoteMapKey, txBody); - - if (TssVoteHandler.hasReachedThreshold(txBody, context, THRESHOLD_ONE_HALF)) { - final var tssConfig = context.configuration().getConfigData(TssConfig.class); - if (tssConfig.keyActiveRoster()) { - // TODO Signal a process to adopt the candidate roster at the next software upgrade boundary? - } + if (!TssVoteHandler.hasReachedThreshold(txBody, context, THRESHOLD_ONE_THIRD)) { + tssBaseStore.put(tssVoteMapKey, txBody); } }