diff --git a/test/functional/test_framework/test_framework.py b/test/functional/test_framework/test_framework.py index 799142a619..31fc897fbe 100755 --- a/test/functional/test_framework/test_framework.py +++ b/test/functional/test_framework/test_framework.py @@ -1427,13 +1427,14 @@ class DashTestFramework(BitcoinTestFramework): ret = {**decoded, **ret} return ret - def wait_for_tx(self, txid, node, expected=True, timeout=15): + def wait_for_tx(self, txid, node, expected=True, timeout=60): def check_tx(): try: + self.bump_mocktime(1) return node.getrawtransaction(txid) except: return False - if wait_until(check_tx, timeout=timeout, sleep=0.5, do_assert=expected) and not expected: + if wait_until(check_tx, timeout=timeout, sleep=1, do_assert=expected) and not expected: raise AssertionError("waiting unexpectedly succeeded") def create_islock(self, hextx, deterministic=False): @@ -1466,13 +1467,14 @@ class DashTestFramework(BitcoinTestFramework): return islock - def wait_for_instantlock(self, txid, node, expected=True, timeout=15): + def wait_for_instantlock(self, txid, node, expected=True, timeout=60): def check_instantlock(): + self.bump_mocktime(1) try: return node.getrawtransaction(txid, True)["instantlock"] except: return False - if wait_until(check_instantlock, timeout=timeout, sleep=0.5, do_assert=expected) and not expected: + if wait_until(check_instantlock, timeout=timeout, sleep=1, do_assert=expected) and not expected: raise AssertionError("waiting unexpectedly succeeded") def wait_for_chainlocked_block(self, node, block_hash, expected=True, timeout=15):