test: support generatetoaddress RPC

This commit is contained in:
Roy Lee 2021-11-08 16:15:09 -08:00 committed by Ubuntu
parent 75b055a2e9
commit 2381554f8f

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