Skip to content

Commit 6b83576

Browse files
committed
node/chainstate: Use MAX_FUTURE_BLOCK_TIME
1 parent 7551ae8 commit 6b83576

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/node/chainstate.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ std::optional<ChainstateLoadVerifyError> VerifyLoadedChainstate(ChainstateManage
141141
for (CChainState* chainstate : chainman.GetAll()) {
142142
if (!is_coinsview_empty(chainstate)) {
143143
const CBlockIndex* tip = chainstate->m_chain.Tip();
144-
if (tip && tip->nTime > get_unix_time_seconds() + 2 * 60 * 60) {
144+
if (tip && tip->nTime > get_unix_time_seconds() + MAX_FUTURE_BLOCK_TIME) {
145145
return ChainstateLoadVerifyError::ERROR_BLOCK_FROM_FUTURE;
146146
}
147147

0 commit comments

Comments
 (0)