diff options
author | MarcoFalke <falke.marco@gmail.com> | 2021-07-27 13:26:11 +0200 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2021-08-19 15:30:07 +0200 |
commit | faf7e9280487d643cf59681df2711d72675b5ad4 (patch) | |
tree | ba5e0fd925ed3d9fbdf037680b94cebc6d6efabb /test | |
parent | 38975eccd498175ca91a837deefe8d820f16a53e (diff) |
test: Add generate* calls to test framework
Diffstat (limited to 'test')
-rwxr-xr-x | test/functional/test_framework/test_framework.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/functional/test_framework/test_framework.py b/test/functional/test_framework/test_framework.py index 6d8e6ef45c..fe17b83632 100755 --- a/test/functional/test_framework/test_framework.py +++ b/test/functional/test_framework/test_framework.py @@ -619,6 +619,22 @@ class BitcoinTestFramework(metaclass=BitcoinTestMetaClass): self.connect_nodes(1, 2) 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): """ Wait until everybody has the same tip. |