test: support generatetoaddress RPC
This commit is contained in:
parent
967cc9f0ab
commit
ae49760121
1 changed files with 4 additions and 0 deletions
|
@ -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))
|
||||
|
||||
|
|
Loading…
Reference in a new issue