diff --git a/db/src/storage.rs b/db/src/storage.rs index cd5fe36c..9d4d23b1 100644 --- a/db/src/storage.rs +++ b/db/src/storage.rs @@ -25,7 +25,7 @@ const _COL_RESERVED6: u32 = 10; const DB_VERSION: u32 = 1; /// Blockchain storage interface -pub trait Store { +pub trait Store : Send + Sync { /// resolves hash by block number fn block_hash(&self, number: u64) -> Option; diff --git a/verification/src/chain_verifier.rs b/verification/src/chain_verifier.rs new file mode 100644 index 00000000..77dba1f8 --- /dev/null +++ b/verification/src/chain_verifier.rs @@ -0,0 +1,17 @@ +//! Bitcoin chain verifier + +use std::sync::Arc; + +use db; +use chain; +use super::{Verify, VerificationResult, Chain}; + +struct ChainVerifier { + store: Arc, +} + +impl Verify for ChainVerifier { + fn verify(&self, block: &chain::Block) -> VerificationResult { + Ok(Chain::Main) + } +} diff --git a/verification/src/lib.rs b/verification/src/lib.rs index 37e188b7..1069f1eb 100644 --- a/verification/src/lib.rs +++ b/verification/src/lib.rs @@ -13,6 +13,7 @@ extern crate ethcore_devtools as devtools; extern crate test_data; mod queue; +mod chain_verifier; pub use queue::Queue;