test: support generatetoaddress RPC

This commit is contained in:
Roy Lee 2021-11-08 16:15:09 -08:00 committed by Lex Berezhny
parent 967cc9f0ab
commit ae49760121

View file

@ -419,6 +419,10 @@ class BlockchainNode:
self.block_expected += blocks
return self._cli_cmnd('generate', str(blocks))
def generate_to_address(self, blocks, addr):
self.block_expected += blocks
return self._cli_cmnd('generatetoaddress', str(blocks), addr)
def wallet_passphrase(self, passphrase, timeout):
return self._cli_cmnd('walletpassphrase', passphrase, str(timeout))