diff options
author | John Newbery <john@johnnewbery.com> | 2017-06-07 13:43:03 -0400 |
---|---|---|
committer | John Newbery <john@johnnewbery.com> | 2017-06-29 11:55:23 +0100 |
commit | 0d473c539ed0f53168aa3bae8474f214831dec1f (patch) | |
tree | 3bb27a7b56a4d8d7cd49297d64dedf524cb8f872 /test/functional/test_framework/util.py | |
parent | cad967a892d836b3afbd1ab81c73731e968368c6 (diff) | |
download | bitcoin-0d473c539ed0f53168aa3bae8474f214831dec1f.tar.xz |
[tests] move mocktime property and functions to BitcoinTestFramework
Diffstat (limited to 'test/functional/test_framework/util.py')
-rw-r--r-- | test/functional/test_framework/util.py | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/test/functional/test_framework/util.py b/test/functional/test_framework/util.py index fbdb3d7e6d..cca1e2b894 100644 --- a/test/functional/test_framework/util.py +++ b/test/functional/test_framework/util.py @@ -30,27 +30,6 @@ class PortSeed: # Must be initialized with a unique integer for each process n = None -# Set Mocktime default to OFF. -# MOCKTIME is only needed for scripts that use the -# cached version of the blockchain. If the cached -# version of the blockchain is used without MOCKTIME -# then the mempools will not sync due to IBD. -MOCKTIME = 0 - -def enable_mocktime(): - # For backwared compatibility of the python scripts - # with previous versions of the cache, set MOCKTIME - # to Jan 1, 2014 + (201 * 10 * 60) - global MOCKTIME - MOCKTIME = 1388534400 + (201 * 10 * 60) - -def disable_mocktime(): - global MOCKTIME - MOCKTIME = 0 - -def get_mocktime(): - return MOCKTIME - def get_rpc_proxy(url, node_number, timeout=None, coveragedir=None): """ Args: |