aboutsummaryrefslogtreecommitdiff
path: root/src/rpc/blockchain.cpp
diff options
context:
space:
mode:
authorRussell Yanofsky <[email protected]>2017-03-02 12:20:34 -0500
committerRussell Yanofsky <[email protected]>2017-03-03 13:51:41 -0500
commite57a1fd8999800b3fc744d45bb96354cae294032 (patch)
treee3c79a873e1f83eefe2f86506b87125a9c02679a /src/rpc/blockchain.cpp
parentMerge #9891: depends: make osx output deterministic (diff)
downloaddiscoin-e57a1fd8999800b3fc744d45bb96354cae294032.tar.xz
discoin-e57a1fd8999800b3fc744d45bb96354cae294032.zip
Define 7200 second timestamp window constant
Diffstat (limited to 'src/rpc/blockchain.cpp')
-rw-r--r--src/rpc/blockchain.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rpc/blockchain.cpp b/src/rpc/blockchain.cpp
index 6826ce4a7..dd46a3c3b 100644
--- a/src/rpc/blockchain.cpp
+++ b/src/rpc/blockchain.cpp
@@ -846,7 +846,7 @@ UniValue pruneblockchain(const JSONRPCRequest& request)
// too low to be a block time (corresponds to timestamp from Sep 2001).
if (heightParam > 1000000000) {
// Add a 2 hour buffer to include blocks which might have had old timestamps
- CBlockIndex* pindex = chainActive.FindEarliestAtLeast(heightParam - 7200);
+ CBlockIndex* pindex = chainActive.FindEarliestAtLeast(heightParam - TIMESTAMP_WINDOW);
if (!pindex) {
throw JSONRPCError(RPC_INTERNAL_ERROR, "Could not find block with at least the specified timestamp.");
}