Fix everything.

This commit is contained in:
Gav
2018-02-07 17:07:55 +01:00
parent ef059b81f1
commit d494d4b89b
9 changed files with 6 additions and 9 deletions
+1 -1
View File
@@ -213,7 +213,7 @@ mod tests {
construct_block( construct_block(
2, 2,
block1().1, block1().1,
hex!("e2ba57cfb94b870ea6670b012b49dc33cbb70e3aa8d36cf54dfa5e4e69cd0778").into(), hex!("1feb4d3a2e587079e6ce1685fa79994efd995e33cb289d39cded67aac1bb46a9").into(),
vec![ vec![
Transaction { Transaction {
signed: two(), signed: two(),
+1 -1
View File
@@ -11,7 +11,7 @@ fixed-hash = { git = "https://github.com/rphmeier/primitives.git", branch = "com
rustc-hex = { git = "https://github.com/rphmeier/rustc-hex.git", version = "2.0", default_features = false } rustc-hex = { git = "https://github.com/rphmeier/rustc-hex.git", version = "2.0", default_features = false }
serde = { version = "1.0", default_features = false } serde = { version = "1.0", default_features = false }
serde_derive = { version = "1.0", optional = true } serde_derive = { version = "1.0", optional = true }
uint = { git = "https://github.com/rphmeier/primitives.git", branch = "compile-for-wasm" } uint = { git = "https://github.com/rphmeier/primitives.git", branch = "compile-for-wasm", default_features = false }
twox-hash = { version = "1.1.0", optional = true } twox-hash = { version = "1.1.0", optional = true }
byteorder = { version = "1.1", default_features = false } byteorder = { version = "1.1", default_features = false }
blake2-rfc = { version = "0.2.18", optional = true } blake2-rfc = { version = "0.2.18", optional = true }
+1 -1
View File
@@ -10,7 +10,7 @@ rustc_version = "0.2"
[dependencies] [dependencies]
pwasm-alloc = { path = "../wasm-runtime/pwasm-alloc" } pwasm-alloc = { path = "../wasm-runtime/pwasm-alloc" }
pwasm-libc = { path = "../wasm-runtime/pwasm-libc" } pwasm-libc = { path = "../wasm-runtime/pwasm-libc" }
substrate-runtime-std = { path = "../runtime-std" } substrate-runtime-std = { path = "../runtime-std", default_features = false }
environmental = { path = "../environmental", optional = true } environmental = { path = "../environmental", optional = true }
substrate-state-machine = { path = "../state-machine", optional = true } substrate-state-machine = { path = "../state-machine", optional = true }
substrate-primitives = { path = "../primitives", default_features = false } substrate-primitives = { path = "../primitives", default_features = false }
@@ -25,9 +25,6 @@ extern crate substrate_runtime_io as runtime_io;
#[cfg(feature = "std")] #[cfg(feature = "std")]
extern crate rustc_hex; extern crate rustc_hex;
#[cfg(feature = "with-std")]
#[macro_use]
extern crate log;
extern crate substrate_codec as codec; extern crate substrate_codec as codec;
extern crate substrate_primitives; extern crate substrate_primitives;
@@ -202,15 +202,15 @@ fn post_finalise(header: &Header) {
storage::put(&header.number.to_keyed_vec(BLOCK_HASH_AT), &header.blake2_256()); storage::put(&header.number.to_keyed_vec(BLOCK_HASH_AT), &header.blake2_256());
} }
#[cfg(feature = "with-std")] #[cfg(feature = "std")]
fn info_expect_equal_hash(given: &Hash, expected: &Hash) { fn info_expect_equal_hash(given: &Hash, expected: &Hash) {
use support::HexDisplay; use support::HexDisplay;
if given != expected { if given != expected {
info!("Hash: given={}, expected={}", HexDisplay::from(given), HexDisplay::from(expected)); println!("Hash: given={}, expected={}", HexDisplay::from(&given.0), HexDisplay::from(&expected.0));
} }
} }
#[cfg(not(feature = "with-std"))] #[cfg(not(feature = "std"))]
fn info_expect_equal_hash(_given: &Hash, _expected: &Hash) {} fn info_expect_equal_hash(_given: &Hash, _expected: &Hash) {}
#[cfg(test)] #[cfg(test)]