aboutsummaryrefslogtreecommitdiff
path: root/tests/functional_tests
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-04-20 15:46:48 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-05-09 11:48:54 +0000
commitddf789073046ca7a396c159550d5896aa7de709b (patch)
tree93cf99954dfc384359b043b34e610a7410fdd880 /tests/functional_tests
parentMerge pull request #5466 (diff)
downloadmonero-ddf789073046ca7a396c159550d5896aa7de709b.tar.xz
python-rpc: add missing getblock RPC parameters
Diffstat (limited to 'tests/functional_tests')
-rwxr-xr-xtests/functional_tests/blockchain.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/functional_tests/blockchain.py b/tests/functional_tests/blockchain.py
index 56164600d..ee84d84bc 100755
--- a/tests/functional_tests/blockchain.py
+++ b/tests/functional_tests/blockchain.py
@@ -66,7 +66,7 @@ class BlockchainTest():
# we should not see a block at height
ok = False
- try: daemon.getblock(height)
+ try: daemon.getblock(height = height)
except: ok = True
assert ok
@@ -84,7 +84,7 @@ class BlockchainTest():
# get the blocks, check they have the right height
res_getblock = []
for n in range(blocks):
- res_getblock.append(daemon.getblock(height + n))
+ res_getblock.append(daemon.getblock(height = height + n))
block_header = res_getblock[n].block_header
assert abs(block_header.timestamp - time.time()) < 10 # within 10 seconds
assert block_header.height == height + n
@@ -103,7 +103,7 @@ class BlockchainTest():
# we should not see a block after that
ok = False
- try: daemon.getblock(height + blocks)
+ try: daemon.getblock(height = height + blocks)
except: ok = True
assert ok
@@ -149,7 +149,7 @@ class BlockchainTest():
# we should not see the popped block anymore
ok = False
- try: daemon.getblock(height + blocks - 1)
+ try: daemon.getblock(height = height + blocks - 1)
except: ok = True
assert ok