mirror of
https://github.com/bitcoinj/bitcoinj.git
synced 2024-11-19 18:00:39 +01:00
TestFeeLevel: Print wallet balance and receive address earlier.
This commit is contained in:
parent
0d0358fe92
commit
8bd47a6c6d
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user