CheckpointManager: fix wrong unit of time

This mistake was introduced in commit 838b12c046.
The original line before the `java.time` migration was:

`60 * 60 * 24 * 7; // one week in seconds`
This commit is contained in:
Andreas Schildbach 2023-03-26 17:55:47 +02:00
parent 795da8f54b
commit 4bdb8d7836

View File

@ -240,7 +240,7 @@ public class CheckpointManager {
checkArgument(!(store instanceof FullPrunedBlockStore), () -> checkArgument(!(store instanceof FullPrunedBlockStore), () ->
"you cannot use checkpointing with a full store"); "you cannot use checkpointing with a full store");
time = time.minus(7, ChronoUnit.WEEKS); time = time.minus(7, ChronoUnit.DAYS);
log.info("Attempting to initialize a new block store with a checkpoint for time {} ({})", time.getEpochSecond(), log.info("Attempting to initialize a new block store with a checkpoint for time {} ({})", time.getEpochSecond(),
TimeUtils.dateTimeFormat(time)); TimeUtils.dateTimeFormat(time));