Transaction: include coinbase input in toString()

It used to be suppressed, presumably because coinbase scriptSigs may
contain arbitrary bytes which could confuse our script parser.
This commit is contained in:
Andreas Schildbach 2025-03-09 11:14:03 +01:00
parent 9b28fdbfa0
commit c18ec968e1

View file

@ -768,7 +768,8 @@ public class Transaction extends BaseMessage {
s.append(indent).append("purpose: ").append(purpose).append('\n');
if (isCoinBase()) {
s.append(indent).append("coinbase\n");
} else if (!inputs.isEmpty()) {
}
if (!inputs.isEmpty()) {
for (TransactionInput in : inputs) {
s.append(indent).append(" ");
s.append("in ");