Remove a finalized state test dependency on ContextuallyValidBlock (#2648)

This commit is contained in:
teor 2021-08-20 22:59:12 +10:00 committed by GitHub
parent 6f8f4d8987
commit e6dc03329e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -9,7 +9,6 @@ use crate::{
arbitrary::PreparedChain,
finalized_state::{FinalizedBlock, FinalizedState},
},
ContextuallyValidBlock,
};
const DEFAULT_PARTIAL_CHAIN_PROPTEST_CASES: u32 = 1;
@ -27,7 +26,7 @@ fn blocks_with_v5_transactions() -> Result<()> {
// use `count` to minimize test failures, so they are easier to diagnose
for block in chain.iter().take(count) {
let hash = state.commit_finalized_direct(
FinalizedBlock::from(ContextuallyValidBlock::from(block.clone())),
FinalizedBlock::from(block.block.clone()),
"blocks_with_v5_transactions test"
);
prop_assert_eq!(Some(height), state.finalized_tip_height());