moved sha256-related utility methods into Sha256Hash class and renamed them

This commit is contained in:
Amichai Rothman
2015-06-22 21:42:17 +03:00
committed by Mike Hearn
parent a449e3b026
commit a6601066dd
19 changed files with 120 additions and 122 deletions

View File

@@ -101,7 +101,7 @@ public class BuildCheckpoints {
private static void writeBinaryCheckpoints(TreeMap<Integer, StoredBlock> checkpoints, File file) throws Exception {
final FileOutputStream fileOutputStream = new FileOutputStream(file, false);
MessageDigest digest = Utils.newSha256Digest();
MessageDigest digest = Sha256Hash.newDigest();
final DigestOutputStream digestOutputStream = new DigestOutputStream(fileOutputStream, digest);
digestOutputStream.on(false);
final DataOutputStream dataOutputStream = new DataOutputStream(digestOutputStream);