Remove a finalized state test dependency on ContextuallyValidBlock (#2648)
This commit is contained in:
parent
6f8f4d8987
commit
e6dc03329e
|
|
@ -9,7 +9,6 @@ use crate::{
|
||||||
arbitrary::PreparedChain,
|
arbitrary::PreparedChain,
|
||||||
finalized_state::{FinalizedBlock, FinalizedState},
|
finalized_state::{FinalizedBlock, FinalizedState},
|
||||||
},
|
},
|
||||||
ContextuallyValidBlock,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
const DEFAULT_PARTIAL_CHAIN_PROPTEST_CASES: u32 = 1;
|
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
|
// use `count` to minimize test failures, so they are easier to diagnose
|
||||||
for block in chain.iter().take(count) {
|
for block in chain.iter().take(count) {
|
||||||
let hash = state.commit_finalized_direct(
|
let hash = state.commit_finalized_direct(
|
||||||
FinalizedBlock::from(ContextuallyValidBlock::from(block.clone())),
|
FinalizedBlock::from(block.block.clone()),
|
||||||
"blocks_with_v5_transactions test"
|
"blocks_with_v5_transactions test"
|
||||||
);
|
);
|
||||||
prop_assert_eq!(Some(height), state.finalized_tip_height());
|
prop_assert_eq!(Some(height), state.finalized_tip_height());
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue