test: support generatetoaddress RPC
This commit is contained in:
parent
31c60e167a
commit
d5598462b6
1 changed files with 4 additions and 0 deletions
|
@ -421,6 +421,10 @@ class BlockchainNode:
|
||||||
self.block_expected += blocks
|
self.block_expected += blocks
|
||||||
return self._cli_cmnd('generate', str(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):
|
def wallet_passphrase(self, passphrase, timeout):
|
||||||
return self._cli_cmnd('walletpassphrase', passphrase, str(timeout))
|
return self._cli_cmnd('walletpassphrase', passphrase, str(timeout))
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue