Move block::Header validation checks into zebra-consensus. #918
Labels
A-consensus
Area: Consensus rule updates
A-rust
Area: Updates to Rust code
C-cleanup
Category: This is a cleanup
C-enhancement
Category: This is an improvement
E-help-wanted
Call for participation: Help is requested to fix this issue.
good first issue
Same rationale as #907, but per #917 (comment) there might be an obstacle.
There are currently two checks:
is_equihash_solution_valid
Solution
inwork/equihash.rs
:block::check
module should haveblock::check::name_of_check
.EquihashError
inblock/header.rs
should be removed (it moves towork/equihash.rs
above).is_time_valid_at
is_time_valid_at
to zebra-consensusis_time_valid_at
is also used in test code, specificallychain/src/block/tests/vectors.rs
.generate
code, which isn't exposed to the rest of the crate APIgenerate
code should be expressed as proptest strategies (Rewriteblock::tests::generate
as proptest strategies. #919) to fix this.zebra-chain
The text was updated successfully, but these errors were encountered: