You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
#!/usr/bin/env python3
|
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
|
|
|
|
# Copyright (c) 2020 tecnovert
|
|
|
|
# Distributed under the MIT software license, see the accompanying
|
|
|
|
# file LICENSE.txt or http://www.opensource.org/licenses/mit-license.php.
|
|
|
|
|
|
|
|
import os
|
|
|
|
|
|
|
|
|
|
|
|
TEST_HTTP_HOST = os.getenv('TEST_HTTP_HOST', '127.0.0.1') # Set to 0.0.0.0 when used in docker
|
|
|
|
TEST_HTTP_PORT = 1800
|
|
|
|
|
|
|
|
|
|
|
|
def checkForks(ro):
|
|
|
|
if 'bip9_softforks' in ro:
|
|
|
|
assert(ro['bip9_softforks']['csv']['status'] == 'active')
|
|
|
|
assert(ro['bip9_softforks']['segwit']['status'] == 'active')
|
|
|
|
else:
|
|
|
|
assert(ro['softforks']['csv']['active'])
|
|
|
|
assert(ro['softforks']['segwit']['active'])
|