fixed bencher

This commit is contained in:
Svyatoslav Nikolsky 2017-08-10 16:02:42 +03:00
parent 46a7c4f7f2
commit 128bac5c76
1 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
use std::sync::Arc; use std::sync::Arc;
use db::BlockChainDatabase; use db::BlockChainDatabase;
use chain::IndexedBlock; use chain::IndexedBlock;
use verification::{BackwardsCompatibleChainVerifier as ChainVerifier, Verify}; use verification::{BackwardsCompatibleChainVerifier as ChainVerifier, Verify, VerificationLevel};
use network::Magic; use network::Magic;
use test_data; use test_data;
use byteorder::{LittleEndian, ByteOrder}; use byteorder::{LittleEndian, ByteOrder};
@ -99,7 +99,7 @@ pub fn main(benchmark: &mut Benchmark) {
// bench // bench
benchmark.start(); benchmark.start();
for block in verification_blocks.iter() { for block in verification_blocks.iter() {
chain_verifier.verify(block).unwrap(); chain_verifier.verify(VerificationLevel::Full, block).unwrap();
} }
benchmark.stop(); benchmark.stop();
} }