mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-02-15 19:55:51 +00:00
Transaction: In toString(), if an output is unconnected still print the outpoint.
This commit is contained in:
parent
9d8bb0b64a
commit
7ca3dca222
@ -803,16 +803,18 @@ public class Transaction extends ChildMessage {
|
||||
}
|
||||
final TransactionOutPoint outpoint = in.getOutpoint();
|
||||
final TransactionOutput connectedOutput = outpoint.getConnectedOutput();
|
||||
s.append(indent).append(" ");
|
||||
if (connectedOutput != null) {
|
||||
Script scriptPubKey = connectedOutput.getScriptPubKey();
|
||||
ScriptType scriptType = scriptPubKey.getScriptType();
|
||||
s.append(indent).append(" ");
|
||||
if (scriptType != null)
|
||||
s.append(scriptType).append(" addr:").append(scriptPubKey.getToAddress(params));
|
||||
else
|
||||
s.append("unknown script type");
|
||||
s.append(" outpoint:").append(outpoint).append('\n');
|
||||
} else {
|
||||
s.append("unconnected");
|
||||
}
|
||||
s.append(" outpoint:").append(outpoint).append('\n');
|
||||
if (in.hasSequence()) {
|
||||
s.append(indent).append(" sequence:").append(Long.toHexString(in.getSequenceNumber()));
|
||||
if (in.isOptInFullRBF())
|
||||
|
Loading…
x
Reference in New Issue
Block a user