aboutsummaryrefslogtreecommitdiff
path: root/src/node/chainstate.cpp
diff options
context:
space:
mode:
authorCarl Dong <contact@carldong.me>2021-12-23 16:26:15 -0500
committerCarl Dong <contact@carldong.me>2021-12-23 17:13:36 -0500
commit6b83576388e205116a0ebc67b9949f309eea1207 (patch)
tree5a6cd68785dac8ef8a37bb7b4386560a2db44b28 /src/node/chainstate.cpp
parent7551ae81e1a9d5bf14b434bce7528ac000d8afe1 (diff)
node/chainstate: Use MAX_FUTURE_BLOCK_TIME
Diffstat (limited to 'src/node/chainstate.cpp')
-rw-r--r--src/node/chainstate.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/node/chainstate.cpp b/src/node/chainstate.cpp
index abeebad1a6..0274587e17 100644
--- a/src/node/chainstate.cpp
+++ b/src/node/chainstate.cpp
@@ -141,7 +141,7 @@ std::optional<ChainstateLoadVerifyError> VerifyLoadedChainstate(ChainstateManage
for (CChainState* chainstate : chainman.GetAll()) {
if (!is_coinsview_empty(chainstate)) {
const CBlockIndex* tip = chainstate->m_chain.Tip();
- if (tip && tip->nTime > get_unix_time_seconds() + 2 * 60 * 60) {
+ if (tip && tip->nTime > get_unix_time_seconds() + MAX_FUTURE_BLOCK_TIME) {
return ChainstateLoadVerifyError::ERROR_BLOCK_FROM_FUTURE;
}