Page MenuHomePhabricator

Replace hardcoded future block time with preexisting constant
ClosedPublic

Authored by jasonbcox on Feb 11 2018, 19:17.

Details

Summary

Hard coded magic numbers are bad. Preexisting constant:
./chain.h:23:static const int64_t MAX_FUTURE_BLOCK_TIME = 2 * 60 * 60;

Test Plan

make check

Diff Detail

Repository
rABC Bitcoin ABC
Branch
future
Lint
Lint Passed
SeverityLocationCodeMessage
Auto-Fixsrc/init.cpp:1CFMTCode style violation
Unit
No Test Coverage
Build Status
Buildable 1828
Build 1847: Bitcoin ABC Buildbot (legacy)
Build 1846: arc lint + arc unit