class SPVBlockStore implements BlockStore {

    @Override
    public void close() throws BlockStoreException {
        try {
            buffer.force();
            buffer = null;  // Allow it to be GCd and the underlying file mapping to go away.
            randomAccessFile.close();
            blockCache.clear();
        } catch (IOException e) {
            throw new BlockStoreException(e);
        }
    }

    public  SPVBlockStore(NetworkParameters params, File file);
    public  SPVBlockStore(NetworkParameters params, File file, int capacity, boolean grow);

}