Use self.generate not node.generate throughout tests

This commit is contained in:
Samuel Dobson
2021-10-06 12:18:33 +13:00
parent 113b863f07
commit eb02dbba3c
5 changed files with 5 additions and 5 deletions

View File

@ -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()