feat: check chain metadata (#6146) #1402
660 tests run, 651 passed, 0 skipped, 9 failed.
Annotations
Check failure on line 1 in tari_core
github-actions / JUnit Test Report
tari_core.chain_storage::blockchain_database::test::test_handle_possible_reorg_case2
thread 'chain_storage::blockchain_database::test::test_handle_possible_reorg_case2' panicked at 'Expected reorg result, but was OrphanBlock', base_layer/core/src/chain_storage/block_add_result.rs:108:44
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Raw output
thread 'chain_storage::blockchain_database::test::test_handle_possible_reorg_case2' panicked at 'Expected reorg result, but was OrphanBlock', base_layer/core/src/chain_storage/block_add_result.rs:108:44
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Check failure on line 1 in tari_core
github-actions / JUnit Test Report
tari_core.chain_storage::blockchain_database::test::test_handle_possible_reorg_case3
thread 'chain_storage::blockchain_database::test::test_handle_possible_reorg_case3' panicked at 'Expected reorg result, but was OrphanBlock', base_layer/core/src/chain_storage/block_add_result.rs:108:44
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Raw output
thread 'chain_storage::blockchain_database::test::test_handle_possible_reorg_case3' panicked at 'Expected reorg result, but was OrphanBlock', base_layer/core/src/chain_storage/block_add_result.rs:108:44
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Check failure on line 1 in tari_core
github-actions / JUnit Test Report
tari_core.chain_storage::blockchain_database::test::test_handle_possible_reorg_case4
thread 'chain_storage::blockchain_database::test::test_handle_possible_reorg_case4' panicked at 'Expected reorg result, but was OrphanBlock', base_layer/core/src/chain_storage/block_add_result.rs:108:44
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Raw output
thread 'chain_storage::blockchain_database::test::test_handle_possible_reorg_case4' panicked at 'Expected reorg result, but was OrphanBlock', base_layer/core/src/chain_storage/block_add_result.rs:108:44
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Check failure on line 1 in tari_core
github-actions / JUnit Test Report
tari_core.chain_storage::blockchain_database::test::insert_orphan_and_find_new_tips::it_correctly_detects_strongest_orphan_tips
thread 'chain_storage::blockchain_database::test::insert_orphan_and_find_new_tips::it_correctly_detects_strongest_orphan_tips' panicked at 'assertion failed: `(left == right)`
left: `ChainHeader { header: BlockHeader { version: 0, height: 3, prev_hash: FixedHash([201, 113, 135, 163, 207, 25, 50, 20, 4, 205, 177, 125, 179, 22, 49, 124, 143, 156, 23, 32, 111, 77, 102, 81, 99, 108, 204, 79, 132, 175, 138, 34]), timestamp: EpochTime(1702015620), input_mr: FixedHash([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), output_mr: FixedHash([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), output_smt_size: 103, kernel_mr: FixedHash([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), kernel_mmr_size: 4, total_kernel_offset: RistrettoSecretKey(***), total_script_offset: RistrettoSecretKey(***), validator_node_mr: FixedHash([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), validator_node_size: 0, pow: ProofOfWork { pow_algo: Sha3x, pow_data: [] }, nonce: 6091241608396588095 }, accumulated_data: BlockHeaderAccumulatedData { hash: FixedHash([195, 8, 249, 216, 119, 6, 183, 192, 133, 127, 39, 97, 69, 240, 155, 122, 248, 182, 240, 81, 206, 196, 116, 19, 176, 29, 45, 230, 32, 132, 199, 9]), total_kernel_offset: RistrettoSecretKey(***), achieved_difficulty: Difficulty(1), total_accumulated_target_difficulty: 4, accumulated_randomx_target_difficulty: AccumulatedDifficulty(1), accumulated_sha3x_target_difficulty: AccumulatedDifficulty(4), target_difficulty: Difficulty(1) } }`,
Raw output
thread 'chain_storage::blockchain_database::test::insert_orphan_and_find_new_tips::it_correctly_detects_strongest_orphan_tips' panicked at 'assertion failed: `(left == right)`
left: `ChainHeader { header: BlockHeader { version: 0, height: 3, prev_hash: FixedHash([201, 113, 135, 163, 207, 25, 50, 20, 4, 205, 177, 125, 179, 22, 49, 124, 143, 156, 23, 32, 111, 77, 102, 81, 99, 108, 204, 79, 132, 175, 138, 34]), timestamp: EpochTime(1702015620), input_mr: FixedHash([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), output_mr: FixedHash([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), output_smt_size: 103, kernel_mr: FixedHash([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), kernel_mmr_size: 4, total_kernel_offset: RistrettoSecretKey(***), total_script_offset: RistrettoSecretKey(***), validator_node_mr: FixedHash([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), validator_node_size: 0, pow: ProofOfWork { pow_algo: Sha3x, pow_data: [] }, nonce: 6091241608396588095 }, accumulated_data: BlockHeaderAccumulatedData { hash: FixedHash([195, 8, 249, 216, 119, 6, 183, 192, 133, 127, 39, 97, 69, 240, 155, 122, 248, 182, 240, 81, 206, 196, 116, 19, 176, 29, 45, 230, 32, 132, 199, 9]), total_kernel_offset: RistrettoSecretKey(***), achieved_difficulty: Difficulty(1), total_accumulated_target_difficulty: 4, accumulated_randomx_target_difficulty: AccumulatedDifficulty(1), accumulated_sha3x_target_difficulty: AccumulatedDifficulty(4), target_difficulty: Difficulty(1) } }`,
right: `ChainHeader { header: BlockHeader { version: 0, height: 3, prev_hash: FixedHash([201, 113, 135, 163, 207, 25, 50, 20, 4, 205, 177, 125, 179, 22, 49, 124, 143, 156, 23, 32, 111, 77, 102, 81, 99, 108, 204, 79, 132, 175, 138, 34]), timestamp: EpochTime(1702015620), input_mr: FixedHash([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), output_mr: FixedHash([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), output_smt_size: 103, kernel_mr: FixedHash([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), kernel_mmr_size: 4, total_kernel_offset: RistrettoSecretKey(***), total_script_offset: RistrettoSecretKey(***), validator_node_mr: FixedHash([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), validator_node_size: 0, pow: ProofOfWork { pow_algo: Sha3x, pow_data: [] }, nonce: 6091241608396588095 }, accumulated_data: BlockHeaderAccumulatedData { hash: FixedHash([195, 8, 249, 216, 119, 6, 183, 192, 133, 127, 39, 97, 69, 240, 155, 122, 248, 182, 240, 81, 206, 196, 116, 19, 176, 29, 45, 230, 32, 132, 199, 9]), total_kernel_offset: RistrettoSecretKey(***), achieved_difficulty: Difficulty(1), total_accumulated_target_difficulty: 5, accumulated_randomx_target_difficulty: AccumulatedDifficulty(1), accumulated_sha3x_target_difficulty: AccumulatedDifficulty(5), target_difficulty: Difficulty(1) } }`', base_layer/core/src/chain_storage/blockchain_database.rs:2752:13
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Check failure on line 1 in tari_core
github-actions / JUnit Test Report
tari_core.chain_storage::blockchain_database::test::test_handle_possible_reorg_case5
thread 'chain_storage::blockchain_database::test::test_handle_possible_reorg_case5' panicked at 'Expected reorg result, but was OrphanBlock', base_layer/core/src/chain_storage/block_add_result.rs:108:44
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Raw output
thread 'chain_storage::blockchain_database::test::test_handle_possible_reorg_case5' panicked at 'Expected reorg result, but was OrphanBlock', base_layer/core/src/chain_storage/block_add_result.rs:108:44
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Check failure on line 1 in tari_core
github-actions / JUnit Test Report
tari_core.chain_storage::blockchain_database::test::handle_possible_reorg::it_links_many_orphan_branches_to_main_chain
thread 'chain_storage::blockchain_database::test::handle_possible_reorg::it_links_many_orphan_branches_to_main_chain' panicked at 'assertion failed: `(left == right)`
left: `FixedHash([152, 85, 141, 238, 249, 10, 209, 78, 139, 141, 76, 32, 150, 252, 103, 69, 39, 115, 1, 26, 110, 88, 81, 130, 97, 149, 13, 124, 122, 97, 201, 163])`,
Raw output
thread 'chain_storage::blockchain_database::test::handle_possible_reorg::it_links_many_orphan_branches_to_main_chain' panicked at 'assertion failed: `(left == right)`
left: `FixedHash([152, 85, 141, 238, 249, 10, 209, 78, 139, 141, 76, 32, 150, 252, 103, 69, 39, 115, 1, 26, 110, 88, 81, 130, 97, 149, 13, 124, 122, 97, 201, 163])`,
right: `FixedHash([188, 97, 9, 243, 142, 43, 128, 71, 1, 251, 79, 253, 132, 31, 117, 14, 216, 209, 250, 49, 87, 86, 251, 31, 10, 85, 37, 174, 191, 240, 180, 84])`', base_layer/core/src/chain_storage/blockchain_database.rs:2844:17
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Check failure on line 1 in tari_core
github-actions / JUnit Test Report
tari_core.chain_storage::blockchain_database::test::test_handle_possible_reorg_accum_difficulty_is_correct_case_1
thread 'chain_storage::blockchain_database::test::test_handle_possible_reorg_accum_difficulty_is_correct_case_1' panicked at 'assertion failed: `(left == right)`
left: `[5]`,
Raw output
thread 'chain_storage::blockchain_database::test::test_handle_possible_reorg_accum_difficulty_is_correct_case_1' panicked at 'assertion failed: `(left == right)`
left: `[5]`,
right: `[6]`', base_layer/core/src/chain_storage/blockchain_database.rs:3398:9
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Check failure on line 1 in tari_core
github-actions / JUnit Test Report
tari_core.chain_storage::blockchain_database::test::handle_possible_reorg::it_links_many_orphan_branches_to_main_chain_with_greater_reorg_than_median_timestamp_window
thread 'chain_storage::blockchain_database::test::handle_possible_reorg::it_links_many_orphan_branches_to_main_chain_with_greater_reorg_than_median_timestamp_window' panicked at 'Expected reorg result, but was OrphanBlock', base_layer/core/src/chain_storage/block_add_result.rs:108:44
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Raw output
thread 'chain_storage::blockchain_database::test::handle_possible_reorg::it_links_many_orphan_branches_to_main_chain_with_greater_reorg_than_median_timestamp_window' panicked at 'Expected reorg result, but was OrphanBlock', base_layer/core/src/chain_storage/block_add_result.rs:108:44
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Check failure on line 1 in tari_core
github-actions / JUnit Test Report
tari_core.chain_storage::blockchain_database::test::test_handle_possible_reorg_target_difficulty_is_correct_case_2
thread 'chain_storage::blockchain_database::test::test_handle_possible_reorg_target_difficulty_is_correct_case_2' panicked at 'Result was not orphaned', base_layer/core/src/chain_storage/block_add_result.rs:92:9
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Raw output
thread 'chain_storage::blockchain_database::test::test_handle_possible_reorg_target_difficulty_is_correct_case_2' panicked at 'Result was not orphaned', base_layer/core/src/chain_storage/block_add_result.rs:92:9
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace