Make substrate-offchain compile for WASM again (#3965)

* Make substrate-offchain compile for WASM again

* Minor adjustments
This commit is contained in:
Pierre Krieger
2019-10-30 12:08:46 +01:00
committed by Tomasz Drwięga
parent 678ec6899c
commit 5de3393297
4 changed files with 121 additions and 2 deletions
+7
View File
@@ -33,7 +33,14 @@ use primitives::offchain::{
use sr_primitives::{generic::BlockId, traits::{self, Extrinsic}};
use transaction_pool::txpool::{Pool, ChainApi};
#[cfg(not(target_os = "unknown"))]
mod http;
#[cfg(target_os = "unknown")]
use http_dummy as http;
#[cfg(target_os = "unknown")]
mod http_dummy;
mod timestamp;
/// A message between the offchain extension and the processing thread.