diff options
author | MarcoFalke <falke.marco@gmail.com> | 2021-07-27 20:04:51 +0200 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2021-08-19 19:02:11 +0200 |
commit | fab2e23b579c44f1b4bed4d813bbe5a21eaa22c8 (patch) | |
tree | 7409c4da5d5b76eb6046a1441e0f120ae7f89f01 /test/functional/mining_getblocktemplate_longpoll.py | |
parent | faf7e9280487d643cf59681df2711d72675b5ad4 (diff) | |
download | bitcoin-fab2e23b579c44f1b4bed4d813bbe5a21eaa22c8.tar.xz |
Use generate* from TestFramework
The changes in feature_rbf can be reviewed with
--color-moved=dimmed-zebra --color-moved-ws=ignore-all-space
Diffstat (limited to 'test/functional/mining_getblocktemplate_longpoll.py')
-rwxr-xr-x | test/functional/mining_getblocktemplate_longpoll.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/functional/mining_getblocktemplate_longpoll.py b/test/functional/mining_getblocktemplate_longpoll.py index 715b68e04c..3003627778 100755 --- a/test/functional/mining_getblocktemplate_longpoll.py +++ b/test/functional/mining_getblocktemplate_longpoll.py @@ -48,9 +48,9 @@ class GetBlockTemplateLPTest(BitcoinTestFramework): thr.join(5) # wait 5 seconds or until thread exits assert thr.is_alive() - miniwallets = [ MiniWallet(node) for node in self.nodes ] + miniwallets = [MiniWallet(node) for node in self.nodes] self.log.info("Test that longpoll will terminate if another node generates a block") - miniwallets[1].generate(1) # generate a block on another node + self.generate(miniwallets[1], 1) # generate a block on another node # check that thread will exit now that new transaction entered mempool thr.join(5) # wait 5 seconds or until thread exits assert not thr.is_alive() @@ -58,7 +58,7 @@ class GetBlockTemplateLPTest(BitcoinTestFramework): self.log.info("Test that longpoll will terminate if we generate a block ourselves") thr = LongpollThread(self.nodes[0]) thr.start() - miniwallets[0].generate(1) # generate a block on own node + self.generate(miniwallets[0], 1) # generate a block on own node thr.join(5) # wait 5 seconds or until thread exits assert not thr.is_alive() |