mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-12-04 01:32:31 +01:00
(finally) remove getinfo in favor of more module-specific infos
This commit is contained in:
@@ -16,10 +16,10 @@ class NamedArgumentTest(BitcoinTestFramework):
|
||||
|
||||
def run_test(self):
|
||||
node = self.nodes[0]
|
||||
h = node.help(command='getinfo')
|
||||
assert(h.startswith('getinfo\n'))
|
||||
h = node.help(command='getblockchaininfo')
|
||||
assert(h.startswith('getblockchaininfo\n'))
|
||||
|
||||
assert_raises_jsonrpc(-8, 'Unknown named parameter', node.help, random='getinfo')
|
||||
assert_raises_jsonrpc(-8, 'Unknown named parameter', node.help, random='getblockchaininfo')
|
||||
|
||||
h = node.getblockhash(height=0)
|
||||
node.getblock(blockhash=h)
|
||||
|
||||
Reference in New Issue
Block a user