removed redundant ethcore/basic_types.rs (#7584)

This commit is contained in:
Marek Kotewicz
2018-01-17 10:35:43 +01:00
committed by GitHub
parent 534692cdae
commit 36ba004c29
8 changed files with 17 additions and 45 deletions

View File

@@ -22,14 +22,19 @@ use hash::{KECCAK_NULL_RLP, KECCAK_EMPTY_LIST_RLP, keccak};
use heapsize::HeapSizeOf;
use ethereum_types::{H256, U256, Address, Bloom};
use bytes::Bytes;
use basic_types::{ZERO_LOGBLOOM};
use time::get_time;
use rlp::*;
pub use basic_types::Seal;
pub use types::BlockNumber;
/// Semantic boolean for when a seal/signature is included.
pub enum Seal {
/// The seal/signature is included.
With,
/// The seal/signature is not included.
Without,
}
/// A block header.
///
/// Reflects the specific RLP fields of a block in the chain with additional room for the seal
@@ -109,7 +114,7 @@ impl Default for Header {
state_root: KECCAK_NULL_RLP,
receipts_root: KECCAK_NULL_RLP,
log_bloom: ZERO_LOGBLOOM.clone(),
log_bloom: Bloom::default(),
gas_used: U256::default(),
gas_limit: U256::default(),