mirror of
https://github.com/Qortal/qortal.git
synced 2025-02-15 11:45:49 +00:00
Fixed major performance issue in DataFile.toString()
This commit is contained in:
parent
0086c6373b
commit
7531fe14fe
@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user