diff options
author | luigi1111 <luigi1111w@gmail.com> | 2019-07-24 13:55:12 -0500 |
---|---|---|
committer | luigi1111 <luigi1111w@gmail.com> | 2019-07-24 13:55:12 -0500 |
commit | 4c4586ca7b9ff5fd7668687a0d8b2bdc8a05f92f (patch) | |
tree | 071828244b24ab8109bb688b1e1cf7b771eaeebb /tests/functional_tests/blockchain.py | |
parent | Merge pull request #5472 (diff) | |
parent | python-rpc: add missing getblock RPC parameters (diff) | |
download | monero-4c4586ca7b9ff5fd7668687a0d8b2bdc8a05f92f.tar.xz |
Merge pull request #5473
ddf7890 python-rpc: add missing getblock RPC parameters (moneromooo-monero)
Diffstat (limited to 'tests/functional_tests/blockchain.py')
-rwxr-xr-x | tests/functional_tests/blockchain.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/functional_tests/blockchain.py b/tests/functional_tests/blockchain.py index 644597584..2bd7672c0 100755 --- a/tests/functional_tests/blockchain.py +++ b/tests/functional_tests/blockchain.py @@ -74,7 +74,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 @@ -92,7 +92,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 @@ -111,7 +111,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 @@ -157,7 +157,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 |