Skip to content

Commit

Permalink
Obtain reference to fake chain blocks via the list of reversible bloc…
Browse files Browse the repository at this point in the history
…ks stored by light client for better encapsulation
  • Loading branch information
systemzax committed Aug 8, 2024
1 parent 09b612f commit 724b942
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions unittests/svnn_finality_violation_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -608,8 +608,8 @@ BOOST_AUTO_TEST_SUITE(svnn_finality_violation)
mutable_variant_object valid_rule_2_proof_2 = prepare_rule_2_proof( light_client_data.active_finalizer_policy,
get_finality_block_data(real_chain_block_14_result),
get_finality_block_data(real_chain_block_15_result).qc_data.qc.value(),
get_finality_block_data(fake_chain_block_13_result),
get_finality_block_data(fake_chain_block_14_result).qc_data.qc.value(),
light_client_data.reversible_blocks[light_client_data.reversible_blocks.size()-2],
light_client_data.reversible_blocks[light_client_data.reversible_blocks.size()-1].qc_data.qc.value(),
block_ref_digests);

BOOST_CHECK(shouldPass(real_chain, "rule2"_n, valid_rule_2_proof_2));
Expand Down

0 comments on commit 724b942

Please sign in to comment.