3
0
mirror of https://github.com/Qortal/qortal.git synced 2025-02-15 03:35:49 +00:00

Fixed major performance issue in DataFile.toString()

This commit is contained in:
CalDescent 2021-07-05 08:23:29 +01:00
parent 0086c6373b
commit 7531fe14fe

View File

@ -461,11 +461,11 @@ public class DataFile {
return null; return null;
} }
public String shortDigest() { public String shortHash58() {
if (this.digest58() == null) { if (this.hash58 == null) {
return null; return null;
} }
return this.digest58().substring(0, Math.min(this.digest58().length(), SHORT_DIGEST_LENGTH)); return this.hash58.substring(0, Math.min(this.hash58.length(), SHORT_DIGEST_LENGTH));
} }
public String getHash58() { public String getHash58() {
@ -491,6 +491,6 @@ public class DataFile {
@Override @Override
public String toString() { public String toString() {
return this.shortDigest(); return this.shortHash58();
} }
} }