diff --git a/test/functional/test_framework/test_framework.py b/test/functional/test_framework/test_framework.py index 1971431ef7..08b3615933 100755 --- a/test/functional/test_framework/test_framework.py +++ b/test/functional/test_framework/test_framework.py @@ -1407,13 +1407,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): @@ -1446,13 +1447,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):