public static void write1000Blocks(final Path target) {
    try {
      Files.write(
          target,
          Resources.toByteArray(getMainnetResources().getBlocksURL()),
          StandardOpenOption.CREATE,
          StandardOpenOption.TRUNCATE_EXISTING);
    } catch (final IOException ex) {
      throw new IllegalStateException(ex);
    }
  }
Writes the first 1000 blocks of the public chain to the given file.

@param target FIle to write blocks to
testutil/src/main/java/org/hyperledger/besu/testutil/BlockTestUtil.java