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/interface_zmq.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/interface_zmq.py')
-rwxr-xr-x | test/functional/interface_zmq.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/functional/interface_zmq.py b/test/functional/interface_zmq.py index 61b96a8250..6686f77a44 100755 --- a/test/functional/interface_zmq.py +++ b/test/functional/interface_zmq.py @@ -82,8 +82,8 @@ class ZMQTestSetupBlock: raw transaction data. """ - def __init__(self, node): - self.block_hash = node.generate(1)[0] + def __init__(self, test_framework, node): + self.block_hash = test_framework.generate(node, 1)[0] coinbase = node.getblock(self.block_hash, 2)['tx'][0] self.tx_hash = coinbase['txid'] self.raw_tx = coinbase['hex'] @@ -147,7 +147,7 @@ class ZMQTest (BitcoinTestFramework): for sub in subscribers: sub.socket.set(zmq.RCVTIMEO, 1000) while True: - test_block = ZMQTestSetupBlock(self.nodes[0]) + test_block = ZMQTestSetupBlock(self, self.nodes[0]) recv_failed = False for sub in subscribers: try: |