diff options
author | Samuel Dobson <dobsonsa68@gmail.com> | 2021-10-06 12:18:33 +1300 |
---|---|---|
committer | Samuel Dobson <dobsonsa68@gmail.com> | 2021-10-06 12:18:33 +1300 |
commit | eb02dbba3cd9f7294cd81e268cf85a1de7a71d02 (patch) | |
tree | 89ad2b55874fb113f9fa7df6b5e44b79be58d4ae /test/functional | |
parent | 113b863f0773999497f952daa6539a03a66a9de3 (diff) |
Use self.generate not node.generate throughout tests
Diffstat (limited to 'test/functional')
-rwxr-xr-x | test/functional/interface_zmq.py | 2 | ||||
-rwxr-xr-x | test/functional/p2p_compactblocks_blocksonly.py | 2 | ||||
-rwxr-xr-x | test/functional/rpc_fundrawtransaction.py | 2 | ||||
-rwxr-xr-x | test/functional/rpc_psbt.py | 2 | ||||
-rwxr-xr-x | test/functional/wallet_send.py | 2 |
5 files changed, 5 insertions, 5 deletions
diff --git a/test/functional/interface_zmq.py b/test/functional/interface_zmq.py index 4313b05f88..5a11a62ec4 100755 --- a/test/functional/interface_zmq.py +++ b/test/functional/interface_zmq.py @@ -583,7 +583,7 @@ class ZMQTest (BitcoinTestFramework): ], ipv6=True) # Generate 1 block in nodes[0] - self.nodes[0].generatetoaddress(1, ADDRESS_BCRT1_UNSPENDABLE) + self.generatetoaddress(self.nodes[0], 1, ADDRESS_BCRT1_UNSPENDABLE) # Should receive the same block hash assert_equal(self.nodes[0].getbestblockhash(), subscribers[0].receive().hex()) diff --git a/test/functional/p2p_compactblocks_blocksonly.py b/test/functional/p2p_compactblocks_blocksonly.py index 4073ec03a6..5f01fa4dfe 100755 --- a/test/functional/p2p_compactblocks_blocksonly.py +++ b/test/functional/p2p_compactblocks_blocksonly.py @@ -33,7 +33,7 @@ class P2PCompactBlocksBlocksOnly(BitcoinTestFramework): self.sync_all() def build_block_on_tip(self): - blockhash = self.nodes[2].generate(1)[0] + blockhash = self.generate(self.nodes[2], 1)[0] block_hex = self.nodes[2].getblock(blockhash=blockhash, verbosity=0) block = from_hex(CBlock(), block_hex) block.rehash() diff --git a/test/functional/rpc_fundrawtransaction.py b/test/functional/rpc_fundrawtransaction.py index 3b01506986..b8a6bbfa17 100755 --- a/test/functional/rpc_fundrawtransaction.py +++ b/test/functional/rpc_fundrawtransaction.py @@ -1010,7 +1010,7 @@ class RawTransactionsTest(BitcoinTestFramework): self.nodes[0].sendtoaddress(addr, 10) self.nodes[0].sendtoaddress(wallet.getnewaddress(), 10) - self.nodes[0].generate(6) + self.generate(self.nodes[0], 6) ext_utxo = self.nodes[0].listunspent(addresses=[addr])[0] # An external input without solving data should result in an error diff --git a/test/functional/rpc_psbt.py b/test/functional/rpc_psbt.py index 6b5b2c6a0f..44f62b1a94 100755 --- a/test/functional/rpc_psbt.py +++ b/test/functional/rpc_psbt.py @@ -627,7 +627,7 @@ class PSBTTest(BitcoinTestFramework): addr_info = self.nodes[0].getaddressinfo(addr) self.nodes[0].sendtoaddress(addr, 10) - self.nodes[0].generate(6) + self.generate(self.nodes[0], 6) ext_utxo = self.nodes[0].listunspent(addresses=[addr])[0] # An external input without solving data should result in an error diff --git a/test/functional/wallet_send.py b/test/functional/wallet_send.py index 7b23235945..a00e326fd4 100755 --- a/test/functional/wallet_send.py +++ b/test/functional/wallet_send.py @@ -502,7 +502,7 @@ class WalletSendTest(BitcoinTestFramework): self.nodes[0].sendtoaddress(addr, 10) self.nodes[0].sendtoaddress(ext_wallet.getnewaddress(), 10) - self.nodes[0].generate(6) + self.generate(self.nodes[0], 6) ext_utxo = ext_fund.listunspent(addresses=[addr])[0] # An external input without solving data should result in an error |