Fix bug where Genesis was loaded twice

This commit is contained in:
nicksavers 2014-06-23 18:41:52 +02:00
parent c1cc8e0a86
commit 4f1fa49c05
1 changed files with 1 additions and 1 deletions

View File

@ -181,7 +181,7 @@ public class Blockchain {
public void loadChain() {
DBIterator iterator = db.iterator();
try {
if (index.size() == 0) {
if (!iterator.hasNext()) {
logger.info("DB is empty - adding Genesis");
this.lastBlock = Genesis.getInstance();
this.addBlock(lastBlock);