From 8dc9c9f27a46810ce02f54b959e970e0ba34e845 Mon Sep 17 00:00:00 2001 From: Mike Hearn Date: Thu, 14 Feb 2013 19:21:17 +0100 Subject: [PATCH] Fix a bug in Transaction.toString(). Resolves issue 309. --- core/src/main/java/com/google/bitcoin/core/Transaction.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/com/google/bitcoin/core/Transaction.java b/core/src/main/java/com/google/bitcoin/core/Transaction.java index 49b303c2..fcf2f0cc 100644 --- a/core/src/main/java/com/google/bitcoin/core/Transaction.java +++ b/core/src/main/java/com/google/bitcoin/core/Transaction.java @@ -596,7 +596,7 @@ public class Transaction extends ChildMessage implements Serializable { if (scriptSig.chunks.size() == 2) s.append(scriptSig.getFromAddress().toString()); else if (scriptSig.chunks.size() == 1) - s.append("[sig:" + bytesToHexString(scriptSig.getPubKey()) + "]"); + s.append("[sig:" + bytesToHexString(scriptSig.chunks.get(0).data) + "]"); else s.append("???"); s.append(" / ");