Skip to content
This repository has been archived by the owner on Aug 23, 2020. It is now read-only.

Commit

Permalink
Snapshot related changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
Alfred Keller committed Aug 10, 2017
1 parent 6c192b1 commit 496e195
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 22,246 deletions.
7 changes: 6 additions & 1 deletion src/main/java/com/iota/iri/Snapshot.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import com.iota.iri.hash.ISS;
import com.iota.iri.hash.SpongeFactory;
import com.iota.iri.model.Hash;
import com.iota.iri.conf.Configuration;
import com.iota.iri.controllers.TransactionViewModel;
import com.iota.iri.utils.Converter;
import org.apache.commons.lang3.ArrayUtils;
Expand Down Expand Up @@ -46,7 +47,9 @@ public class Snapshot {
initialState.put(new Hash(key), Long.valueOf(value));
}
}
{ // Check snapshot signature
/*
{
// Check snapshot signature
trits = new int[Curl.HASH_LENGTH];
curl.squeeze(trits, 0, Curl.HASH_LENGTH);
int[] digests = new int[0];
Expand All @@ -63,6 +66,8 @@ public class Snapshot {
throw new RuntimeException("Snapshot signature failed.");
}
}
*/

} catch (IOException e) {
System.out.println("Failed to load snapshot.");
System.exit(-1);
Expand Down
Loading

0 comments on commit 496e195

Please sign in to comment.