Show sat/byte at tx print

This commit is contained in:
Manfred Karrer 2017-03-04 13:31:52 -05:00
parent bcd47f663a
commit 560cb0af80

View file

@ -556,9 +556,11 @@ public abstract class WalletService {
/////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////
public static void printTx(String tracePrefix, Transaction tx) { public static void printTx(String tracePrefix, Transaction tx) {
int size = tx.bitcoinSerialize().length;
log.info("\n" + tracePrefix + ":\n" + log.info("\n" + tracePrefix + ":\n" +
tx.toString() + "\n" + tx.toString() +
"Size: " + tx.bitcoinSerialize().length); "Satoshi/byte: " + tx.getFee().value / size +
" (size: " + size + ")");
} }