From 63f72840c4fb2cba5fde784a159f75b80386126e Mon Sep 17 00:00:00 2001 From: Andreas Schildbach Date: Tue, 13 Jun 2023 09:22:48 +0200 Subject: [PATCH] WalletTool: after `send` action, also print the entire transaction Currently, only the transaction hash is printed. --- .../src/main/java/org/bitcoinj/wallettool/WalletTool.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wallettool/src/main/java/org/bitcoinj/wallettool/WalletTool.java b/wallettool/src/main/java/org/bitcoinj/wallettool/WalletTool.java index ec78ec497..525d57923 100644 --- a/wallettool/src/main/java/org/bitcoinj/wallettool/WalletTool.java +++ b/wallettool/src/main/java/org/bitcoinj/wallettool/WalletTool.java @@ -693,7 +693,8 @@ public class WalletTool implements Callable { } catch (ScriptException e) { throw new RuntimeException(e); } - System.out.println(tx.getTxId()); + System.out.println("id: " + tx.getTxId()); + System.out.println("tx: " + ByteUtils.formatHex(tx.serialize())); if (offline) { wallet.commitTx(tx); return;