Tweak some checks. (#4633)

* Tweak some checks.

* Fixed build and added a difficulty test
This commit is contained in:
Gav Wood
2017-02-22 18:24:22 +01:00
committed by GitHub
parent f3b5e2074b
commit 3182540d9f
4 changed files with 28 additions and 8 deletions

View File

@@ -185,7 +185,7 @@ pub mod headers {
type Verified = Header;
fn create(input: Self::Input, engine: &Engine) -> Result<Self::Unverified, Error> {
verify_header_params(&input, engine).map(|_| input)
verify_header_params(&input, engine, true).map(|_| input)
}
fn verify(unverified: Self::Unverified, engine: &Engine, check_seal: bool) -> Result<Self::Verified, Error> {