Skip to content

Commit

Permalink
WalletTest: pin creation time of wallet key hierarchy in keyRotationH…
Browse files Browse the repository at this point in the history
…D test to avoid timing race. Should resolve issue 575.
  • Loading branch information
mikehearn committed Aug 23, 2014
1 parent df006ba commit 729c716
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/src/test/java/com/google/bitcoin/core/WalletTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -2352,6 +2352,7 @@ public void keyRotationRandom() throws Exception {
public void keyRotationHD() throws Exception {
// Test that if we rotate an HD chain, a new one is created and all arrivals on the old keys are moved.
Utils.setMockClock();
wallet = new Wallet(params);
ECKey key1 = wallet.freshReceiveKey();
ECKey key2 = wallet.freshReceiveKey();
sendMoneyToWallet(wallet, CENT, key1.toAddress(params), AbstractBlockChain.NewBlockType.BEST_CHAIN);
Expand Down

0 comments on commit 729c716

Please sign in to comment.