diff options
author | MarcoFalke <falke.marco@gmail.com> | 2020-11-10 18:02:31 +0100 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2021-10-29 13:34:52 +0200 |
commit | facc352648e4fe1ed9b406400b6e4a9d51f30349 (patch) | |
tree | 7bba05900db761f91c0b416985a3a774984bfd49 /test/functional/rpc_getchaintips.py | |
parent | 5574881ce329f91cc5bbc2b9585860a45fde7c3c (diff) |
test: Implicitly sync after generate*, unless opted out
Diffstat (limited to 'test/functional/rpc_getchaintips.py')
-rwxr-xr-x | test/functional/rpc_getchaintips.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/test/functional/rpc_getchaintips.py b/test/functional/rpc_getchaintips.py index ab0ee9142d..fb09c81cbd 100755 --- a/test/functional/rpc_getchaintips.py +++ b/test/functional/rpc_getchaintips.py @@ -26,10 +26,8 @@ class GetChainTipsTest (BitcoinTestFramework): # Split the network and build two chains of different lengths. self.split_network() - self.generatetoaddress(self.nodes[0], 10, self.nodes[0].get_deterministic_priv_key().address) - self.generatetoaddress(self.nodes[2], 20, self.nodes[2].get_deterministic_priv_key().address) - self.sync_all(self.nodes[:2]) - self.sync_all(self.nodes[2:]) + self.generate(self.nodes[0], 10, sync_fun=lambda: self.sync_all(self.nodes[:2])) + self.generate(self.nodes[2], 20, sync_fun=lambda: self.sync_all(self.nodes[2:])) tips = self.nodes[1].getchaintips () assert_equal (len (tips), 1) |