def run_test(self):
    while (self.nodes[0].getblockchaininfo()['bip9_softforks']['dip0008']['status'] != 'active'):
        self.nodes[0].generate(10)
    sync_blocks(self.nodes, timeout=(60 * 5))
    self.test_node = TestNode()
    self.test_node.add_connection(NodeConn('127.0.0.1', p2p_port(0), self.nodes[0], self.test_node))
    NetworkThread().start()
    self.test_node.wait_for_verack()
    self.nodes[0].spork('SPORK_17_QUORUM_DKG_ENABLED', 0)
    self.nodes[0].spork('SPORK_19_CHAINLOCKS_ENABLED', 0)
    self.nodes[0].spork('SPORK_20_INSTANTSEND_LLMQ_BASED', 0)
    self.wait_for_sporks_same()
    self.mine_quorum()
    self.nodes[0].generate(1)
    self.wait_for_chainlock_tip_all_nodes()
    self.test_chainlock_overrides_islock(False)
    self.test_chainlock_overrides_islock(True)
    self.test_islock_overrides_nonchainlock()
def run_test(self):
    while (self.nodes[0].getblockchaininfo()['bip9_softforks']['dip0008']['status'] != 'active'):
        self.nodes[0].generate(10)
    sync_blocks(self.nodes, timeout=(60 * 5))
    self.test_node = TestNode()
    self.test_node.add_connection(NodeConn('127.0.0.1', p2p_port(0), self.nodes[0], self.test_node))
    NetworkThread().start()
    self.test_node.wait_for_verack()
    self.nodes[0].spork('SPORK_17_QUORUM_DKG_ENABLED', 0)
    self.nodes[0].spork('SPORK_19_CHAINLOCKS_ENABLED', 0)
    self.nodes[0].spork('SPORK_20_INSTANTSEND_LLMQ_BASED', 0)
    self.wait_for_sporks_same()
    self.mine_quorum()
    self.nodes[0].generate(1)
    self.wait_for_chainlock_tip_all_nodes()
    self.test_chainlock_overrides_islock(False)
    self.test_chainlock_overrides_islock(True)
    self.test_islock_overrides_nonchainlock()