Skip to content

Commit

Permalink
perf improvement for account + comments fixed in e2e multisig test
Browse files Browse the repository at this point in the history
  • Loading branch information
tonowie committed Nov 19, 2019
1 parent 2e84280 commit ef92335
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
8 changes: 4 additions & 4 deletions src/e2e/java/io/proximax/sdk/E2EMultisigTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ void test01TransferFromMultisig1Of2AggregateBonded() {
logger.info("request to transfer aggregate bonded confirmed: {}",
listener.confirmed(cosig1.getAddress()).timeout(getTimeoutSeconds(), TimeUnit.SECONDS).blockingFirst());
sleepForAWhile();
// announce the multisig change as aggregate bounded
// announce the multisig change as aggregate bonded
logger.info("Announced the aggregate bonded transfer from multisig: {}",
transactionHttp.announceAggregateBonded(signedTransaction).blockingFirst());
logger.info("request to make transfer confirmed: {}",
Expand Down Expand Up @@ -213,7 +213,7 @@ void test02TransferFromMultisig2Of2AggregateBonded() {
logger.info("request confirmed: {}",
listener.confirmed(cosig1.getAddress()).timeout(getTimeoutSeconds(), TimeUnit.SECONDS).blockingFirst());
sleepForAWhile();
// announce the multisig change as aggregate bounded
// announce the multisig change as aggregate bonded
logger.info("Announced the transfer from multisig: {}",
transactionHttp.announceAggregateBonded(signedTransaction).blockingFirst());
logger.info("request confirmed: {}",
Expand Down Expand Up @@ -243,7 +243,7 @@ void test02TransferFromMultisig2Of2AggregateBondedSeparateConfirmation() {
logger.info("request confirmed: {}",
listener.confirmed(cosig1.getAddress()).timeout(getTimeoutSeconds(), TimeUnit.SECONDS).blockingFirst());
sleepForAWhile();
// announce the multisig change as aggregate bounded
// announce the multisig change as aggregate bonded
logger.info("Announced the transfer from multisig: {}",
transactionHttp.announceAggregateBonded(signedTransaction).blockingFirst());
logger.info("request confirmed: {}",
Expand Down Expand Up @@ -276,7 +276,7 @@ void test03AddCosignatory() throws InterruptedException, ExecutionException {
logger.info("request confirmed: {}",
listener.confirmed(cosig1.getAddress()).timeout(getTimeoutSeconds(), TimeUnit.SECONDS).blockingFirst());
sleepForAWhile();
// announce the multisig change as aggregate bounded
// announce the multisig change as aggregate bonded
logger.info("Announced the multisig change: {}",
transactionHttp.announceAggregateBonded(signedTransaction).toFuture().get());
logger.info("request confirmed: {}",
Expand Down
3 changes: 1 addition & 2 deletions src/main/java/io/proximax/sdk/model/account/Account.java
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,7 @@ public static Account createFromPrivateKey(String privateKey, NetworkType networ
* @return new random account for specified network type
*/
public static Account generateNewAccount(NetworkType networkType) {
KeyPair keyPair = new KeyPair();
return new Account(keyPair.getPrivateKey().toString(), networkType);
return new Account(new KeyPair(), networkType);
}

/**
Expand Down

0 comments on commit ef92335

Please sign in to comment.