test: move sync_blocks and sync_mempool functions to test_framework.py

This commit is contained in:
Roy Shao committed 2020-06-18 13:32:36 -04:00
1 parent 9ad6f14175
commit cc84460c16
5 files changed
+54 -64

No files matched your search

+1 -2
View File
@@ -12,7 +12,6 @@ from test_framework.util import (
assert_equal,
assert_raises_rpc_error,
connect_nodes,
sync_blocks,
)
@@ -264,7 +263,7 @@ class WalletTest(BitcoinTestFramework):
# Now confirm tx_orig
self.restart_node(1, ['-persistmempool=0'])
connect_nodes(self.nodes[0], 1)
sync_blocks(self.nodes)
self.sync_blocks()
self.nodes[1].sendrawtransaction(tx_orig)
self.nodes[1].generatetoaddress(1, ADDRESS_WATCHONLY)
self.sync_all()