node/chainstate: Use MAX_FUTURE_BLOCK_TIME

This commit is contained in:
Carl Dong committed 2021-12-23 17:13:36 -05:00
1 parent 7551ae81e1
commit 6b83576388
1 file changed
+1 -1
+1 -1
View File
@@ -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;
}