core: added checkpoint for last block

* Add a checkpoint every X blocks
* Removed queued write
This commit is contained in:
Jeffrey Wilcke
2015-06-30 13:46:37 +02:00
parent ba95e445e1
commit c14f0a4471
2 changed files with 42 additions and 58 deletions

View File

@ -109,8 +109,7 @@ func testChain(chainB types.Blocks, bman *BlockProcessor) (*big.Int, error) {
bman.bc.mu.Lock()
{
bman.bc.enqueueForWrite(block)
//bman.bc.write(block)
bman.bc.write(block)
}
bman.bc.mu.Unlock()
}