mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-11-14 03:17:19 +00:00
Transaction: Put transaction confidence into separate line in toString().
This commit is contained in:
@@ -624,7 +624,9 @@ public class Transaction extends ChildMessage implements Serializable {
|
|||||||
public String toString(@Nullable AbstractBlockChain chain) {
|
public String toString(@Nullable AbstractBlockChain chain) {
|
||||||
// Basic info about the tx.
|
// Basic info about the tx.
|
||||||
StringBuilder s = new StringBuilder();
|
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()) {
|
if (isTimeLocked()) {
|
||||||
String time;
|
String time;
|
||||||
if (lockTime < LOCKTIME_THRESHOLD) {
|
if (lockTime < LOCKTIME_THRESHOLD) {
|
||||||
|
|||||||
Reference in New Issue
Block a user