This adds methods to the test framework that can be called by just self.sync_*()
.
This avoids having to import the underlying util method. Also, in the default case, where all nodes are synced this avoid having to pass self.nodes
explicitly.
So the effective changes are:
0@@
1-from test_framework.util import sync_blocks, sync_mempools
2@@
3- sync_blocks(self.nodes)
4+ self.sync_blocks()
5@@
6- sync_mempools(self.nodes)
7+ self.sync_mempools()