mirror of
https://github.com/bisq-network/bisq.git
synced 2025-02-25 07:27:18 +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) {
|
||||
int size = tx.bitcoinSerialize().length;
|
||||
log.info("\n" + tracePrefix + ":\n" +
|
||||
tx.toString() + "\n" +
|
||||
"Size: " + tx.bitcoinSerialize().length);
|
||||
tx.toString() +
|
||||
"Satoshi/byte: " + tx.getFee().value / size +
|
||||
" (size: " + size + ")");
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue