class BlockChainFlusher implements InternalService {

    private void flush() {
        if (nFlush == 0) {
            flushAll();
        }

        nFlush++;
        nFlush = nFlush % flushNumberOfBlocks;
    }

    public  BlockChainFlusher(
            int flushNumberOfBlocks,
            CompositeEthereumListener emitter,
            TrieStore trieStore,
            BlockStore blockStore, ReceiptStore receiptStore);

}