Skip to content

Commit

Permalink
spotless
Browse files Browse the repository at this point in the history
Signed-off-by: Derek Riley <derek.riley@swirldslabs.com>
  • Loading branch information
derektriley committed Oct 23, 2024
1 parent 59afef3 commit c3080cf
Showing 1 changed file with 3 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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() {
Expand Down Expand Up @@ -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);

Check warning on line 77 in hedera-node/hedera-app/src/main/java/com/hedera/node/app/tss/handlers/TssVoteHandler.java

View check run for this annotation

Codecov / codecov/patch

hedera-node/hedera-app/src/main/java/com/hedera/node/app/tss/handlers/TssVoteHandler.java#L77

Added line #L77 was not covered by tests
}
}

Expand Down

0 comments on commit c3080cf

Please sign in to comment.