Implementation of the Blockstore state engine.