mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-13 11:25:02 -05:00
test: Add generate* calls to test framework
This commit is contained in:
parent
38975eccd4
commit
faf7e92804
1 changed files with 16 additions and 0 deletions
|
@ -619,6 +619,22 @@ class BitcoinTestFramework(metaclass=BitcoinTestMetaClass):
|
||||||
self.connect_nodes(1, 2)
|
self.connect_nodes(1, 2)
|
||||||
self.sync_all()
|
self.sync_all()
|
||||||
|
|
||||||
|
def generate(self, generator, *args, **kwargs):
|
||||||
|
blocks = generator.generate(*args, **kwargs)
|
||||||
|
return blocks
|
||||||
|
|
||||||
|
def generateblock(self, generator, *args, **kwargs):
|
||||||
|
blocks = generator.generateblock(*args, **kwargs)
|
||||||
|
return blocks
|
||||||
|
|
||||||
|
def generatetoaddress(self, generator, *args, **kwargs):
|
||||||
|
blocks = generator.generatetoaddress(*args, **kwargs)
|
||||||
|
return blocks
|
||||||
|
|
||||||
|
def generatetodescriptor(self, generator, *args, **kwargs):
|
||||||
|
blocks = generator.generatetodescriptor(*args, **kwargs)
|
||||||
|
return blocks
|
||||||
|
|
||||||
def sync_blocks(self, nodes=None, wait=1, timeout=60):
|
def sync_blocks(self, nodes=None, wait=1, timeout=60):
|
||||||
"""
|
"""
|
||||||
Wait until everybody has the same tip.
|
Wait until everybody has the same tip.
|
||||||
|
|
Loading…
Add table
Reference in a new issue