diff options
author | MarcoFalke <falke.marco@gmail.com> | 2020-04-12 17:09:23 -0400 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2020-04-16 08:45:05 -0400 |
commit | fa5b1f067fcf8bebb23455dd8a16cde5068e79cd (patch) | |
tree | 17dc98f13fa5b4015128b86265989a927f68bcdb /test | |
parent | fa86a4bbfc000593ae4ad9dcdaec3fd0c0406086 (diff) |
rpc: Document all aliases for second arg of getblock
Diffstat (limited to 'test')
-rwxr-xr-x | test/functional/rpc_generateblock.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/functional/rpc_generateblock.py b/test/functional/rpc_generateblock.py index 5298f385ba..aa58c0af9d 100755 --- a/test/functional/rpc_generateblock.py +++ b/test/functional/rpc_generateblock.py @@ -11,6 +11,7 @@ from test_framework.util import ( assert_raises_rpc_error, ) + class GenerateBlockTest(BitcoinTestFramework): def set_test_params(self): self.num_nodes = 1 @@ -24,13 +25,13 @@ class GenerateBlockTest(BitcoinTestFramework): self.log.info('Generate an empty block to address') address = node.getnewaddress() hash = node.generateblock(output=address, transactions=[])['hash'] - block = node.getblock(hash, 2) + block = node.getblock(blockhash=hash, verbose=2) assert_equal(len(block['tx']), 1) assert_equal(block['tx'][0]['vout'][0]['scriptPubKey']['addresses'][0], address) self.log.info('Generate an empty block to a descriptor') hash = node.generateblock('addr(' + address + ')', [])['hash'] - block = node.getblock(hash, 2) + block = node.getblock(blockhash=hash, verbosity=2) assert_equal(len(block['tx']), 1) assert_equal(block['tx'][0]['vout'][0]['scriptPubKey']['addresses'][0], address) |