Remove duplicate DB insert and update minGasPrice

This commit is contained in:
nicksavers 2014-07-05 16:53:43 +02:00
parent 67f3ada760
commit 0f24239b05
1 changed files with 1 additions and 1 deletions

View File

@ -197,7 +197,6 @@ public class Blockchain {
this.lastBlock = Genesis.getInstance();
this.addBlock(lastBlock);
logger.debug("Block #{} -> {}", Genesis.NUMBER, lastBlock.toFlatString());
chainDb.put(ByteUtil.longToBytes(Genesis.NUMBER), lastBlock.getEncoded());
} else {
logger.debug("Displaying blocks stored in DB sorted on blocknumber");
for (iterator.seekToFirst(); iterator.hasNext();) {
@ -206,6 +205,7 @@ public class Blockchain {
logger.debug("Block #{} -> {}", lastBlock.getNumber(), lastBlock.toFlatString());
}
}
this.updateGasPrice(lastBlock);
} finally {
// Make sure you close the iterator to avoid resource leaks.
try {