mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-10-11 03:53:22 +02:00
rpc: Rename first arg of generateblock RPC to "output"
This commit is contained in:
@@ -23,7 +23,7 @@ class GenerateBlockTest(BitcoinTestFramework):
|
||||
|
||||
self.log.info('Generate an empty block to address')
|
||||
address = node.getnewaddress()
|
||||
hash = node.generateblock(address, [])['hash']
|
||||
hash = node.generateblock(output=address, transactions=[])['hash']
|
||||
block = node.getblock(hash, 2)
|
||||
assert_equal(len(block['tx']), 1)
|
||||
assert_equal(block['tx'][0]['vout'][0]['scriptPubKey']['addresses'][0], address)
|
||||
|
Reference in New Issue
Block a user