aboutsummaryrefslogtreecommitdiff
path: root/src/init.cpp
diff options
context:
space:
mode:
authorWladimir J. van der Laan <[email protected]>2015-06-29 16:39:58 +0200
committerWladimir J. van der Laan <[email protected]>2015-06-29 16:41:29 +0200
commit0564c5b795d1be675a0ac0a2e8038db0970ac376 (patch)
tree18ebd1a489a1b5210d193f34ffdd3bfb45ece78f /src/init.cpp
parentMerge pull request #6299 (diff)
parentTesting infrastructure: mocktime fixes (diff)
downloaddiscoin-0564c5b795d1be675a0ac0a2e8038db0970ac376.tar.xz
discoin-0564c5b795d1be675a0ac0a2e8038db0970ac376.zip
Merge pull request #6337
6a4b97e Testing infrastructure: mocktime fixes (Gavin Andresen)
Diffstat (limited to 'src/init.cpp')
-rw-r--r--src/init.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/init.cpp b/src/init.cpp
index bcdd1f2f3..c4e3573de 100644
--- a/src/init.cpp
+++ b/src/init.cpp
@@ -868,6 +868,9 @@ bool AppInit2(boost::thread_group& threadGroup, CScheduler& scheduler)
fAlerts = GetBoolArg("-alerts", DEFAULT_ALERTS);
+ // Option to startup with mocktime set (used for regression testing):
+ SetMockTime(GetArg("-mocktime", 0)); // SetMockTime(0) is a no-op
+
// ********************************************************* Step 4: application initialization: dir lock, daemonize, pidfile, debug log
// Initialize elliptic curve code