Fix a bug in Transaction.toString().

Resolves issue 309.
This commit is contained in:
Mike Hearn 2013-02-14 19:21:17 +01:00
parent 1b4fa96691
commit 8dc9c9f27a

View File

@ -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(" / ");