mirror of
https://github.com/bisq-network/bisq.git
synced 2025-02-25 15:29:38 +01:00
Show sat/byte at tx print
This commit is contained in:
parent
bcd47f663a
commit
560cb0af80
1 changed files with 4 additions and 2 deletions
|
@ -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 + ")");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue