Transaction: Put transaction confidence into separate line in toString().

This commit is contained in:
Andreas Schildbach
2016-03-04 14:26:07 +01:00
parent 53e49ed3c4
commit cf354feda2

View File

@@ -624,7 +624,9 @@ public class Transaction extends ChildMessage implements Serializable {
public String toString(@Nullable AbstractBlockChain chain) {
// Basic info about the tx.
StringBuilder s = new StringBuilder();
s.append(String.format(Locale.US, " %s: %s%n", getHashAsString(), getConfidence()));
s.append(" ").append(getHashAsString()).append('\n');
if (hasConfidence())
s.append(" confidence: ").append(getConfidence()).append('\n');
if (isTimeLocked()) {
String time;
if (lockTime < LOCKTIME_THRESHOLD) {