Offchain worker: Enable http2 and improve logging (#10305)
* Offchain worker: Enable http2 and improve logging Apparently some webpages now return http2 by default and that silently breaks the offchain http extension. The solution to this is to enable the `http2` feature of hyper. Besides that, this pr improves the logging to make it easier to debug such errors. * FMT * Adds http2 test
Showing
- substrate/Cargo.lock 21 additions, 1 deletionsubstrate/Cargo.lock
- substrate/client/offchain/Cargo.toml 2 additions, 2 deletionssubstrate/client/offchain/Cargo.toml
- substrate/client/offchain/src/api.rs 28 additions, 22 deletionssubstrate/client/offchain/src/api.rs
- substrate/client/offchain/src/api/http.rs 97 additions, 22 deletionssubstrate/client/offchain/src/api/http.rs
- substrate/client/offchain/src/lib.rs 24 additions, 8 deletionssubstrate/client/offchain/src/lib.rs
Please register or sign in to comment