We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cce94c5 commit fadd0c1Copy full SHA for fadd0c1
test/functional/zapwallettxes.py
@@ -15,9 +15,11 @@
15
been zapped.
16
"""
17
from test_framework.test_framework import BitcoinTestFramework
18
-from test_framework.util import (assert_equal,
19
- assert_raises_jsonrpc,
20
- )
+from test_framework.util import (
+ assert_equal,
+ assert_raises_jsonrpc,
21
+ wait_until,
22
+)
23
24
class ZapWalletTXesTest (BitcoinTestFramework):
25
def set_test_params(self):
@@ -56,6 +58,8 @@ def run_test(self):
56
58
self.stop_node(0)
57
59
self.start_node(0, ["-persistmempool=1", "-zapwallettxes=2"])
60
61
+ wait_until(lambda: self.nodes[0].getmempoolinfo()['size'] == 1, timeout=3)
62
+
63
assert_equal(self.nodes[0].gettransaction(txid1)['txid'], txid1)
64
assert_equal(self.nodes[0].gettransaction(txid2)['txid'], txid2)
65
0 commit comments