try {
FileInputStream stream = new FileInputStream(checkpointsFile);
CheckpointManager.checkpoint(networkParams, stream, blockStore, earliestKeyCreationTime);
} catch (IOException e) {
throw new BlockStoreException("Could not load checkpoints file");
}
}
}
BlockChain chain = new BlockChain(networkParams, wallet, blockStore);