mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-07-03 04:01:43 +02:00
rpc: Correctly name arguments
This commit is contained in:
@ -133,7 +133,7 @@ class BlockchainTest(BitcoinTestFramework):
|
||||
assert_raises_rpc_error(-8, "Block is not in main chain", self.nodes[0].getchaintxstats, blockhash=blockhash)
|
||||
self.nodes[0].reconsiderblock(blockhash)
|
||||
|
||||
chaintxstats = self.nodes[0].getchaintxstats(1)
|
||||
chaintxstats = self.nodes[0].getchaintxstats(nblocks=1)
|
||||
# 200 txs plus genesis tx
|
||||
assert_equal(chaintxstats['txcount'], 201)
|
||||
# tx rate should be 1 per 10 minutes, or 1/600
|
||||
@ -211,7 +211,7 @@ class BlockchainTest(BitcoinTestFramework):
|
||||
|
||||
besthash = node.getbestblockhash()
|
||||
secondbesthash = node.getblockhash(199)
|
||||
header = node.getblockheader(besthash)
|
||||
header = node.getblockheader(blockhash=besthash)
|
||||
|
||||
assert_equal(header['hash'], besthash)
|
||||
assert_equal(header['height'], 200)
|
||||
@ -287,7 +287,7 @@ class BlockchainTest(BitcoinTestFramework):
|
||||
|
||||
def assert_waitforheight(height, timeout=2):
|
||||
assert_equal(
|
||||
node.waitforblockheight(height, timeout)['height'],
|
||||
node.waitforblockheight(height=height, timeout=timeout)['height'],
|
||||
current_height)
|
||||
|
||||
assert_waitforheight(0)
|
||||
|
Reference in New Issue
Block a user