From 51e93797c2b303f880dd6dce221ac985a6d76b5f Mon Sep 17 00:00:00 2001 From: Lin Huang Date: Thu, 28 Mar 2024 15:22:16 -0400 Subject: [PATCH] Update nodeos_forked_chain_test.py to use get_blocks_result_v1 instead of get_blocks_result_v0 --- tests/nodeos_forked_chain_test.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/nodeos_forked_chain_test.py b/tests/nodeos_forked_chain_test.py index e4efc3dd64..d2ba089e53 100755 --- a/tests/nodeos_forked_chain_test.py +++ b/tests/nodeos_forked_chain_test.py @@ -598,11 +598,11 @@ def getBlock(self, blockNum): block_num = start_block_num for i in data: # fork can cause block numbers to be repeated - this_block_num = i['get_blocks_result_v0']['this_block']['block_num'] + this_block_num = i['get_blocks_result_v1']['this_block']['block_num'] if this_block_num < block_num: block_num = this_block_num assert block_num == this_block_num, f"{block_num} != {this_block_num}" - assert isinstance(i['get_blocks_result_v0']['block'], str) # verify block in result + assert isinstance(i['get_blocks_result_v1']['block'], str) # verify block in result block_num += 1 assert block_num-1 == end_block_num, f"{block_num-1} != {end_block_num}"