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/p2p_compactblocks_blocksonly.py | |
parent | 113b863f0773999497f952daa6539a03a66a9de3 (diff) | |
download | bitcoin-eb02dbba3cd9f7294cd81e268cf85a1de7a71d02.tar.xz |
Use self.generate not node.generate throughout tests
Diffstat (limited to 'test/functional/p2p_compactblocks_blocksonly.py')
-rwxr-xr-x | test/functional/p2p_compactblocks_blocksonly.py | 2 |
1 files changed, 1 insertions, 1 deletions
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() |