TestFeeLevel: Print wallet balance and receive address earlier.

This commit is contained in:
Andreas Schildbach 2016-06-14 20:17:26 +02:00
parent 0d0358fe92
commit 8bd47a6c6d

View File

@ -58,11 +58,13 @@ public class TestFeeLevel {
}
private static void go(Coin feeRateToTest, int numOutputs) throws InterruptedException, java.util.concurrent.ExecutionException, InsufficientMoneyException {
System.out.println("Wallet has " + kit.wallet().getBalance().toFriendlyString()
+ "; current receive address is " + kit.wallet().currentReceiveAddress());
kit.peerGroup().setMaxConnections(25);
if (kit.wallet().getBalance().compareTo(feeRateToTest) < 0) {
System.out.println("Send some money to " + kit.wallet().currentReceiveAddress());
System.out.println("... and wait for it to confirm");
System.out.println("Send some coins to receive address and wait for it to confirm ...");
kit.wallet().getBalanceFuture(feeRateToTest, Wallet.BalanceType.AVAILABLE).get();
}