mirror of
https://github.com/bitcoinj/bitcoinj.git
synced 2025-01-19 05:33:44 +01:00
TestFeeLevel: use messageSize()
not serialize().length
This commit is contained in:
parent
7c1209db51
commit
05c625113f
@ -86,7 +86,7 @@ public class TestFeeLevel {
|
|||||||
request.feePerKb = feeRateToTest;
|
request.feePerKb = feeRateToTest;
|
||||||
request.ensureMinRequiredFee = false;
|
request.ensureMinRequiredFee = false;
|
||||||
kit.wallet().completeTx(request);
|
kit.wallet().completeTx(request);
|
||||||
System.out.println("Size in bytes is " + request.tx.serialize().length);
|
System.out.println("Size in bytes is " + request.tx.messageSize());
|
||||||
System.out.println("TX is " + request.tx);
|
System.out.println("TX is " + request.tx);
|
||||||
System.out.println("Waiting for " + kit.peerGroup().getMaxConnections() + " connected peers");
|
System.out.println("Waiting for " + kit.peerGroup().getMaxConnections() + " connected peers");
|
||||||
kit.peerGroup().addDisconnectedEventListener((peer, peerCount) -> System.out.println(peerCount +
|
kit.peerGroup().addDisconnectedEventListener((peer, peerCount) -> System.out.println(peerCount +
|
||||||
|
Loading…
Reference in New Issue
Block a user