mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-08-08 03:31:34 +00:00
Refactored Sha256Hash API:
- depracated constructors - wrap methods to wrap given hash values in a new instance - of/twiceOf methods to calculate hash values in a new instance - hash/hashTwice to calculate hash values and return the raw bytes
This commit is contained in:
committed by
Mike Hearn
parent
0a94a30a6b
commit
faf92971dd
@@ -116,7 +116,7 @@ public class BuildCheckpoints {
|
||||
buffer.position(0);
|
||||
}
|
||||
dataOutputStream.close();
|
||||
Sha256Hash checkpointsHash = new Sha256Hash(digest.digest());
|
||||
Sha256Hash checkpointsHash = Sha256Hash.wrap(digest.digest());
|
||||
System.out.println("Hash of checkpoints data is " + checkpointsHash);
|
||||
digestOutputStream.close();
|
||||
fileOutputStream.close();
|
||||
|
Reference in New Issue
Block a user