Use Message.unsafeBitcoinSerialize() whenever it's very clear we won't modify the array.

This commit is contained in:
Andreas Schildbach
2016-02-29 22:13:45 +01:00
parent 7240fb754a
commit c4ea9c95e5
18 changed files with 49 additions and 50 deletions

View File

@@ -78,7 +78,7 @@ public class TestFeeLevel {
request.feePerKb = feeToTest;
request.ensureMinRequiredFee = false;
kit.wallet().completeTx(request);
System.out.println("Size in bytes is " + request.tx.bitcoinSerialize().length);
System.out.println("Size in bytes is " + request.tx.unsafeBitcoinSerialize().length);
System.out.println("TX is " + request.tx);
System.out.println("Waiting for " + kit.peerGroup().getMaxConnections() + " connected peers");
kit.peerGroup().addDisconnectedEventListener(new PeerDisconnectedEventListener() {