mirror of
https://github.com/bitcoinj/bitcoinj.git
synced 2025-01-18 21:32:35 +01:00
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:
parent
795da8f54b
commit
4bdb8d7836
@ -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));
|
||||||
|
Loading…
Reference in New Issue
Block a user