From fd10654143eddcb38caf4606ff9c28c63bb67bfb Mon Sep 17 00:00:00 2001 From: Mike Hearn Date: Wed, 28 Jan 2015 18:34:27 +0100 Subject: [PATCH] Fix wallet tests that were using 1 as a private key. --- core/src/test/java/org/bitcoinj/core/WalletTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/test/java/org/bitcoinj/core/WalletTest.java b/core/src/test/java/org/bitcoinj/core/WalletTest.java index 4ea4edff..9cc6416d 100644 --- a/core/src/test/java/org/bitcoinj/core/WalletTest.java +++ b/core/src/test/java/org/bitcoinj/core/WalletTest.java @@ -3092,7 +3092,7 @@ public class WalletTest extends TestWithWallet { @Test(expected = java.lang.IllegalStateException.class) public void sendCoinsNoBroadcasterTest() throws InsufficientMoneyException { - ECKey key = ECKey.fromPrivate(BigInteger.ONE); + ECKey key = ECKey.fromPrivate(BigInteger.TEN); Address notMyAddr = key.toAddress(params); SendRequest req = SendRequest.to(notMyAddr.getParameters(), key, SATOSHI.multiply(12)); wallet.sendCoins(req); @@ -3100,7 +3100,7 @@ public class WalletTest extends TestWithWallet { @Test public void sendCoinsWithBroadcasterTest() throws InsufficientMoneyException { - ECKey key = ECKey.fromPrivate(BigInteger.ONE); + ECKey key = ECKey.fromPrivate(BigInteger.TEN); Address notMyAddr = key.toAddress(params); receiveATransactionAmount(wallet, myAddress, Coin.COIN); MockTransactionBroadcaster broadcaster = new MockTransactionBroadcaster(wallet);