Implement HTTP request in offchain workers (#3461)

* Implement HTTP request in offchain workers

* Bump impl_version

* Don't compile offchain workers for WASM anymore

* Initialize HttpConnector as a fallback.

* Apply review suggestions 😳
This commit is contained in:
Tomasz Drwięga
2019-08-24 06:54:14 +02:00
committed by Gavin Wood
parent 986876e174
commit 7df089241c
10 changed files with 1194 additions and 74 deletions
+1 -1
View File
@@ -1163,7 +1163,7 @@ impl OffchainApi for () {
statuses
.into_iter()
.map(|status| status.try_into().unwrap_or(offchain::HttpRequestStatus::Unknown))
.map(|status| status.try_into().unwrap_or(offchain::HttpRequestStatus::Invalid))
.collect()
}