diff options
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) |