public Stream<Block> stream() {
        return streamBuffers()
                .map(serializer::makeBlock);
    }
@Test
    public void streamFirst100kCount() {
        File blockFile = new File(getClass().getResource("../core/first-100k-blocks.dat").getFile());
        BlockFileLoader loader = new BlockFileLoader(BitcoinNetwork.MAINNET, Collections.singletonList(blockFile));

        long blockCount = loader.stream().count();

        assertEquals(439, blockCount);
    }