Don't reexport bigint from util

This commit is contained in:
Fredrik
2017-09-04 16:36:49 +02:00
parent 56f46edab8
commit 308f36a532
285 changed files with 675 additions and 332 deletions

View File

@@ -20,7 +20,8 @@ use engines::Engine;
use error::Error;
use heapsize::HeapSizeOf;
use util::{H256, U256};
use bigint::prelude::U256;
use bigint::hash::H256;
pub use self::blocks::Blocks;
pub use self::headers::Headers;
@@ -74,7 +75,9 @@ pub mod blocks {
use verification::{PreverifiedBlock, verify_block_basic, verify_block_unordered};
use heapsize::HeapSizeOf;
use util::{Bytes, H256, U256};
use bigint::prelude::U256;
use bigint::hash::H256;
use util::Bytes;
/// A mode for verifying blocks.
pub struct Blocks;
@@ -169,8 +172,8 @@ pub mod headers {
use header::Header;
use verification::verify_header_params;
use util::hash::H256;
use util::U256;
use bigint::prelude::U256;
use bigint::hash::H256;
impl BlockLike for Header {
fn hash(&self) -> H256 { self.hash() }

View File

@@ -23,6 +23,8 @@ use std::sync::{Condvar as SCondvar, Mutex as SMutex, Arc};
use std::cmp;
use std::collections::{VecDeque, HashSet, HashMap};
use heapsize::HeapSizeOf;
use bigint::prelude::U256;
use bigint::hash::H256;
use util::*;
use io::*;
use error::*;