diff options
author | John Newbery <john@johnnewbery.com> | 2019-05-20 14:58:44 -0400 |
---|---|---|
committer | John Newbery <john@johnnewbery.com> | 2019-08-14 15:52:52 -0400 |
commit | 1c93b9b31c2ab7358f9d55f52dd46340397c906d (patch) | |
tree | 968a17c7c72093b56e1d60818f8f4ca8806316ff /test/functional/test_framework/util.py | |
parent | 3862e473f0cb71a762c0306b171b591341d58142 (diff) | |
download | bitcoin-1c93b9b31c2ab7358f9d55f52dd46340397c906d.tar.xz |
[Consensus] Bury CSV deployment height
Hard code CSV deployment height to 419328 for mainnet.
Diffstat (limited to 'test/functional/test_framework/util.py')
-rw-r--r-- | test/functional/test_framework/util.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/functional/test_framework/util.py b/test/functional/test_framework/util.py index c25698fe89..095e0e3e7b 100644 --- a/test/functional/test_framework/util.py +++ b/test/functional/test_framework/util.py @@ -346,6 +346,10 @@ def get_bip9_status(node, key): info = node.getblockchaininfo() return info['softforks'][key]['bip9'] +def softfork_active(node, key): + """Return whether a softfork is active.""" + return node.getblockchaininfo()['softforks'][key]['active'] + def set_node_times(nodes, t): for node in nodes: node.setmocktime(t) |