3
0
mirror of https://github.com/Qortal/altcoinj.git synced 2025-02-13 10:45:51 +00:00

BuildCheckpoints: Print time of checkpoint blocks.

This commit is contained in:
Andreas Schildbach 2015-08-08 15:17:05 +02:00
parent 7f2645fe16
commit bd080ac5e4

View File

@ -125,8 +125,8 @@ public class BuildCheckpoints {
public void notifyNewBestBlock(StoredBlock block) throws VerificationException { public void notifyNewBestBlock(StoredBlock block) throws VerificationException {
int height = block.getHeight(); int height = block.getHeight();
if (height % params.getInterval() == 0 && block.getHeader().getTimeSeconds() <= timeAgo) { if (height % params.getInterval() == 0 && block.getHeader().getTimeSeconds() <= timeAgo) {
System.out.println(String.format("Checkpointing block %s at height %d", System.out.println(String.format("Checkpointing block %s at height %d, time %s",
block.getHeader().getHash(), block.getHeight())); block.getHeader().getHash(), block.getHeight(), Utils.dateTimeFormat(block.getHeader().getTime())));
checkpoints.put(height, block); checkpoints.put(height, block);
} }
} }