Skip to content

Commit

Permalink
checkstyle
Browse files Browse the repository at this point in the history
  • Loading branch information
nkramer44 committed Oct 17, 2024
1 parent 21783ff commit 787cea8
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@
*/
public abstract class SerializedType<T extends SerializedType<T>> {

private static final Set<String> BASE_10_UINT64_FIELD_NAMES = Sets.newHashSet("MaximumAmount", "OutstandingAmount", "MPTAmount");
private static final Set<String> BASE_10_UINT64_FIELD_NAMES = Sets.newHashSet(
"MaximumAmount", "OutstandingAmount", "MPTAmount"
);
@SuppressWarnings("all")
private static final Map<String, Function<String, SerializedType<?>>> typeMap =
new ImmutableMap.Builder<String, Function<String, SerializedType<?>>>()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -593,25 +593,18 @@ void signAttestationClaimEc() {
.destination(AddressConstants.GENESIS_ACCOUNT)
.build();

Signature signature = this.derivedKeySignatureService.sign(privateKeyReference, unsignedAttestation);
assertThat(signature).isNotNull();
assertThat(signature.base16Value()).isEqualTo(
"30440220078E2379E68E59D60DFF4054FE0F988A95595E7A0DB2DB7215A3B7C03232CC7C022021BDB527050084BD9" +
"533BD21FAC0ABB63FD21754AC87C5F580AC583DDF1A9740"
);
final ExecutorService pool = Executors.newFixedThreadPool(5);
final Callable<Boolean> signedTxCallable = () -> {
Signature signature = this.derivedKeySignatureService.sign(privateKeyReference, unsignedAttestation);
assertThat(signature).isNotNull();
assertThat(signature.base16Value()).isEqualTo(
"30440220078E2379E68E59D60DFF4054FE0F988A95595E7A0DB2DB7215A3B7C03232CC7C022021BDB527050084BD9" +
"533BD21FAC0ABB63FD21754AC87C5F580AC583DDF1A9740"
);
return true;
};

// final ExecutorService pool = Executors.newFixedThreadPool(5);
// final Callable<Boolean> signedTxCallable = () -> {
// Signature signature = this.derivedKeySignatureService.sign(privateKeyReference, unsignedAttestation);
// assertThat(signature).isNotNull();
// assertThat(signature.base16Value()).isEqualTo(
// "30440220078E2379E68E59D60DFF4054FE0F988A95595E7A0DB2DB7215A3B7C03232CC7C022021BDB527050084BD9" +
// "533BD21FAC0ABB63FD21754AC87C5F580AC583DDF1A9740"
// );
// return true;
// };

/*final List<Future<Boolean>> futureSeeds = new ArrayList<>();
final List<Future<Boolean>> futureSeeds = new ArrayList<>();
for (int i = 0; i < 500; i++) {
futureSeeds.add(pool.submit(signedTxCallable));
}
Expand All @@ -624,7 +617,7 @@ void signAttestationClaimEc() {
throw new RuntimeException(e.getMessage(), e);
}
})
.forEach(validSig -> assertThat(validSig).isTrue());*/
.forEach(validSig -> assertThat(validSig).isTrue());
}

@Test
Expand Down

0 comments on commit 787cea8

Please sign in to comment.