show additional inputs in tx diagram as labels or abbreviated txid:index

This commit is contained in:
Craig Raw 2022-10-10 09:55:38 +02:00
parent 383d3954d8
commit 22408103ea

View file

@ -462,7 +462,7 @@ public class TransactionDiagram extends GridPane {
StringJoiner joiner = new StringJoiner("\n"); StringJoiner joiner = new StringJoiner("\n");
joiner.add("Spending " + getSatsValue(inputValue) + " sats from" + (isExpanded() ? ":" : " (click to expand):")); joiner.add("Spending " + getSatsValue(inputValue) + " sats from" + (isExpanded() ? ":" : " (click to expand):"));
for(BlockTransactionHashIndex additionalInput : additionalReference.getAdditionalInputs()) { for(BlockTransactionHashIndex additionalInput : additionalReference.getAdditionalInputs()) {
joiner.add(additionalInput.getHashAsString() + ":" + additionalInput.getIndex()); joiner.add(getInputDescription(additionalInput));
} }
tooltip.setText(joiner.toString()); tooltip.setText(joiner.toString());
} else if(input instanceof InvisibleBlockTransactionHashIndex) { } else if(input instanceof InvisibleBlockTransactionHashIndex) {