mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-11-12 10:27:18 +00:00
Fix wallet tests that were using 1 as a private key.
This commit is contained in:
@@ -3092,7 +3092,7 @@ public class WalletTest extends TestWithWallet {
|
|||||||
|
|
||||||
@Test(expected = java.lang.IllegalStateException.class)
|
@Test(expected = java.lang.IllegalStateException.class)
|
||||||
public void sendCoinsNoBroadcasterTest() throws InsufficientMoneyException {
|
public void sendCoinsNoBroadcasterTest() throws InsufficientMoneyException {
|
||||||
ECKey key = ECKey.fromPrivate(BigInteger.ONE);
|
ECKey key = ECKey.fromPrivate(BigInteger.TEN);
|
||||||
Address notMyAddr = key.toAddress(params);
|
Address notMyAddr = key.toAddress(params);
|
||||||
SendRequest req = SendRequest.to(notMyAddr.getParameters(), key, SATOSHI.multiply(12));
|
SendRequest req = SendRequest.to(notMyAddr.getParameters(), key, SATOSHI.multiply(12));
|
||||||
wallet.sendCoins(req);
|
wallet.sendCoins(req);
|
||||||
@@ -3100,7 +3100,7 @@ public class WalletTest extends TestWithWallet {
|
|||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void sendCoinsWithBroadcasterTest() throws InsufficientMoneyException {
|
public void sendCoinsWithBroadcasterTest() throws InsufficientMoneyException {
|
||||||
ECKey key = ECKey.fromPrivate(BigInteger.ONE);
|
ECKey key = ECKey.fromPrivate(BigInteger.TEN);
|
||||||
Address notMyAddr = key.toAddress(params);
|
Address notMyAddr = key.toAddress(params);
|
||||||
receiveATransactionAmount(wallet, myAddress, Coin.COIN);
|
receiveATransactionAmount(wallet, myAddress, Coin.COIN);
|
||||||
MockTransactionBroadcaster broadcaster = new MockTransactionBroadcaster(wallet);
|
MockTransactionBroadcaster broadcaster = new MockTransactionBroadcaster(wallet);
|
||||||
|
|||||||
Reference in New Issue
Block a user