bloom refactor (#7475)
* ethereum-types refactor in progress * ethereum-types refactor in progress * ethereum-types refactor in progress * ethereum-types refactor in progress * ethereum-types refactor finished * cleanup bloom mess * simplify usage of Bloom in few places * removed obsolete util/src/lib.rs * removed commented out code * ethereum-types 0.1.4 * updated ethereum-types and tiny-keccak
This commit is contained in:
parent
51bfb71732
commit
d1d5af56d7
|
@ -8,7 +8,7 @@
|
|||
|
||||
use std::{cmp, mem, str};
|
||||
use byteorder::{ByteOrder, BigEndian};
|
||||
use bigint::{U128, U256, H64, H128, H160, H256, H512, H520, H2048};
|
||||
use bigint::{U128, U256, H64, H128, H160, H256, H512, H520, Bloom};
|
||||
use traits::{Encodable, Decodable};
|
||||
use stream::RlpStream;
|
||||
use {UntrustedRlp, DecoderError};
|
||||
|
@ -213,7 +213,7 @@ impl_encodable_for_hash!(H160);
|
|||
impl_encodable_for_hash!(H256);
|
||||
impl_encodable_for_hash!(H512);
|
||||
impl_encodable_for_hash!(H520);
|
||||
impl_encodable_for_hash!(H2048);
|
||||
impl_encodable_for_hash!(Bloom);
|
||||
|
||||
impl_decodable_for_hash!(H64, 8);
|
||||
impl_decodable_for_hash!(H128, 16);
|
||||
|
@ -221,7 +221,7 @@ impl_decodable_for_hash!(H160, 20);
|
|||
impl_decodable_for_hash!(H256, 32);
|
||||
impl_decodable_for_hash!(H512, 64);
|
||||
impl_decodable_for_hash!(H520, 65);
|
||||
impl_decodable_for_hash!(H2048, 256);
|
||||
impl_decodable_for_hash!(Bloom, 256);
|
||||
|
||||
macro_rules! impl_encodable_for_uint {
|
||||
($name: ident, $size: expr) => {
|
||||
|
|
Loading…
Reference in New Issue