diff --git a/xrpl4j-core/src/main/java/org/xrpl/xrpl4j/codec/binary/types/SerializedType.java b/xrpl4j-core/src/main/java/org/xrpl/xrpl4j/codec/binary/types/SerializedType.java index a685c7c7b..6dd101a45 100644 --- a/xrpl4j-core/src/main/java/org/xrpl/xrpl4j/codec/binary/types/SerializedType.java +++ b/xrpl4j-core/src/main/java/org/xrpl/xrpl4j/codec/binary/types/SerializedType.java @@ -41,7 +41,9 @@ */ public abstract class SerializedType> { - private static final Set BASE_10_UINT64_FIELD_NAMES = Sets.newHashSet("MaximumAmount", "OutstandingAmount", "MPTAmount"); + private static final Set BASE_10_UINT64_FIELD_NAMES = Sets.newHashSet( + "MaximumAmount", "OutstandingAmount", "MPTAmount" + ); @SuppressWarnings("all") private static final Map>> typeMap = new ImmutableMap.Builder>>() diff --git a/xrpl4j-core/src/test/java/org/xrpl/xrpl4j/crypto/signing/bc/BcDerivedKeySignatureServiceTest.java b/xrpl4j-core/src/test/java/org/xrpl/xrpl4j/crypto/signing/bc/BcDerivedKeySignatureServiceTest.java index bc2c9c73a..e407ae1c2 100644 --- a/xrpl4j-core/src/test/java/org/xrpl/xrpl4j/crypto/signing/bc/BcDerivedKeySignatureServiceTest.java +++ b/xrpl4j-core/src/test/java/org/xrpl/xrpl4j/crypto/signing/bc/BcDerivedKeySignatureServiceTest.java @@ -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 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 signedTxCallable = () -> { -// Signature signature = this.derivedKeySignatureService.sign(privateKeyReference, unsignedAttestation); -// assertThat(signature).isNotNull(); -// assertThat(signature.base16Value()).isEqualTo( -// "30440220078E2379E68E59D60DFF4054FE0F988A95595E7A0DB2DB7215A3B7C03232CC7C022021BDB527050084BD9" + -// "533BD21FAC0ABB63FD21754AC87C5F580AC583DDF1A9740" -// ); -// return true; -// }; - - /*final List> futureSeeds = new ArrayList<>(); + final List> futureSeeds = new ArrayList<>(); for (int i = 0; i < 500; i++) { futureSeeds.add(pool.submit(signedTxCallable)); } @@ -624,7 +617,7 @@ void signAttestationClaimEc() { throw new RuntimeException(e.getMessage(), e); } }) - .forEach(validSig -> assertThat(validSig).isTrue());*/ + .forEach(validSig -> assertThat(validSig).isTrue()); } @Test