applied changed from rlp_array
This commit is contained in:
parent
bd43d46026
commit
fe9c8f8c11
@ -15,7 +15,6 @@ flate2 = "0.2"
|
|||||||
rocksdb = "0.2.1"
|
rocksdb = "0.2.1"
|
||||||
|
|
||||||
evmjit = { path = "rust-evmjit", optional = true }
|
evmjit = { path = "rust-evmjit", optional = true }
|
||||||
rustc-serialize = "0.3"
|
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
jit = ["evmjit"]
|
jit = ["evmjit"]
|
||||||
|
@ -62,7 +62,7 @@ pub struct BlockDetails {
|
|||||||
|
|
||||||
impl Decodable for BlockDetails {
|
impl Decodable for BlockDetails {
|
||||||
fn decode<D>(decoder: &D) -> Result<Self, DecoderError> where D: Decoder {
|
fn decode<D>(decoder: &D) -> Result<Self, DecoderError> where D: Decoder {
|
||||||
decoder.read_list(| d | {
|
let d = try!(decoder.as_list());
|
||||||
let details = BlockDetails {
|
let details = BlockDetails {
|
||||||
number: try!(Decodable::decode(&d[0])),
|
number: try!(Decodable::decode(&d[0])),
|
||||||
total_difficulty: try!(Decodable::decode(&d[1])),
|
total_difficulty: try!(Decodable::decode(&d[1])),
|
||||||
@ -70,7 +70,6 @@ impl Decodable for BlockDetails {
|
|||||||
children: try!(Decodable::decode(&d[3]))
|
children: try!(Decodable::decode(&d[3]))
|
||||||
};
|
};
|
||||||
Ok(details)
|
Ok(details)
|
||||||
})
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -76,7 +76,6 @@ extern crate flate2;
|
|||||||
extern crate rocksdb;
|
extern crate rocksdb;
|
||||||
|
|
||||||
extern crate env_logger;
|
extern crate env_logger;
|
||||||
extern crate rustc_serialize;
|
|
||||||
#[cfg(feature = "jit" )]
|
#[cfg(feature = "jit" )]
|
||||||
extern crate evmjit;
|
extern crate evmjit;
|
||||||
extern crate ethcore_util as util;
|
extern crate ethcore_util as util;
|
||||||
|
Loading…
Reference in New Issue
Block a user