mirror of
https://github.com/sparrowwallet/sparrow.git
synced 2024-11-02 20:36:44 +00:00
transaction tree label tweaks
This commit is contained in:
parent
4d587cf776
commit
1d2081d2a6
2 changed files with 5 additions and 1 deletions
|
@ -73,6 +73,10 @@ public class InputForm extends IndexedTransactionForm {
|
|||
}
|
||||
|
||||
public String toString() {
|
||||
if(getTransactionInput().isCoinBase()) {
|
||||
return "Coinbase";
|
||||
}
|
||||
|
||||
TransactionOutPoint outPoint = getTransactionInput().getOutpoint();
|
||||
return outPoint.getHash().toString().substring(0, 8) + "..:" + outPoint.getIndex();
|
||||
}
|
||||
|
|
|
@ -83,7 +83,7 @@ public class OutputForm extends IndexedTransactionForm {
|
|||
return new Label(payment.getLabel() != null && payment.getType() != Payment.Type.FAKE_MIX && payment.getType() != Payment.Type.MIX ? payment.getLabel() : payment.getAddress().toString(),
|
||||
GlyphUtils.getOutputGlyph(getWalletTransaction(), payment));
|
||||
} else if(output instanceof WalletTransaction.ChangeOutput changeOutput) {
|
||||
return new Label(changeOutput.getWalletNode().getAddress().toString(), GlyphUtils.getChangeGlyph());
|
||||
return new Label("Change", GlyphUtils.getChangeGlyph());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue