3
0
mirror of https://github.com/Qortal/altcoinj.git synced 2025-02-15 03:35:52 +00:00

TransactionInput: better toString

This commit is contained in:
Mike Hearn 2013-10-07 17:57:33 +02:00
parent d0be53f0a1
commit b09c4cbe09

View File

@ -259,9 +259,7 @@ public class TransactionInput extends ChildMessage implements Serializable {
if (isCoinBase()) if (isCoinBase())
return "TxIn: COINBASE"; return "TxIn: COINBASE";
try { try {
return "TxIn from tx " + outpoint + " (pubkey: " + Utils.bytesToHexString(getScriptSig().getPubKey()) + return "TxIn for [" + outpoint + "]: " + getScriptSig();
") script:" +
getScriptSig().toString();
} catch (ScriptException e) { } catch (ScriptException e) {
throw new RuntimeException(e); throw new RuntimeException(e);
} }