forked from Qortal/qortal
auto update debugging
This commit is contained in:
parent
52ac881db0
commit
675596ed6e
@ -100,8 +100,10 @@ public class AutoUpdate extends Thread {
|
|||||||
// TODO: check arbitrary data length (pre-fetch) matches build timestamp (8) + git commit length (20) + sha256 hash length (32) = 60 bytes
|
// TODO: check arbitrary data length (pre-fetch) matches build timestamp (8) + git commit length (20) + sha256 hash length (32) = 60 bytes
|
||||||
|
|
||||||
byte[] data = arbitraryTransaction.fetchData();
|
byte[] data = arbitraryTransaction.fetchData();
|
||||||
if (data.length != EXPECTED_DATA_LENGTH)
|
if (data.length != EXPECTED_DATA_LENGTH) {
|
||||||
|
LOGGER.debug(String.format("Arbitrary data length %d doesn't match %d", data.length, EXPECTED_DATA_LENGTH));
|
||||||
continue;
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
ByteBuffer byteBuffer = ByteBuffer.wrap(data);
|
ByteBuffer byteBuffer = ByteBuffer.wrap(data);
|
||||||
|
|
||||||
@ -136,6 +138,7 @@ public class AutoUpdate extends Thread {
|
|||||||
|
|
||||||
public void shutdown() {
|
public void shutdown() {
|
||||||
isStopping = true;
|
isStopping = true;
|
||||||
|
this.interrupt();
|
||||||
}
|
}
|
||||||
|
|
||||||
private static boolean attemptUpdate(byte[] commitHash, byte[] downloadHash, String repoBaseUri) {
|
private static boolean attemptUpdate(byte[] commitHash, byte[] downloadHash, String repoBaseUri) {
|
||||||
|
Loading…
Reference in New Issue
Block a user