        //Simulation of three chains.
        
        long diff = 300000L;
        for (int i = 0; i < 15; i++) {
            BlockHeader lastHeaderA = chainA.getLastHeader();
            Block currentA = chainA.getBlock(lastHeaderA).get();

            Function<String, Block> blockLookupChainA = hash -> chainA.getBlock(hash).get();

            long difficultyNextBlock = BlockUtils.getDifficultyForNextBlock(currentA, blockLookupChainA);
            long ts = currentA.getTimestamp() + diff;
            Block rawBlockA = new Block(currentA.getIndex() + 1, "", currentA.getHash(), ts, 0,