Skip to content
This repository was archived by the owner on Jul 4, 2022. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
19b67cd
Export GRANDPA AuthorityPair when full_crypto is enabled (#4872)
h4x3rotab Feb 10, 2020
8b6b093
Create Benchmarking Setup for Identity Pallet #4695 (#4818)
shawntabrizi Feb 10, 2020
f735d3e
Fix vesting logic (#4864)
gavofyork Feb 10, 2020
7e8ac2e
Update trie-db to the latest (#4874)
cecton Feb 10, 2020
ae03ee9
Fix timer panics in the wasm light client (#4561)
expenses Feb 10, 2020
0d4586b
Don't expose `Benchmarking` host functions by default (#4875)
bkchr Feb 10, 2020
571e3c4
Add trace on import block. (#4871)
seerscode Feb 10, 2020
1fa3f7f
Refactor and document allocator (#4855)
pepyakin Feb 10, 2020
d472cd6
Avoid challenging those that can't be suspended anyway (#4804)
gavofyork Feb 10, 2020
b388338
Add trait to get module and call names. (#4854)
seerscode Feb 10, 2020
26a4b73
Fix runtime-interface tests on windows (#4805)
bkchr Feb 10, 2020
613a3bc
update primitive types to 0.6.2 (#4866)
NikVolf Feb 10, 2020
671cb85
Run offchain workers at hash, not number. (#4878)
tomusdrw Feb 10, 2020
50bb62f
Use prefixed iterator from trie. (#4858)
cheme Feb 11, 2020
a5a61df
Add support for json output in subkey (#4882)
hbakkum-dotstar Feb 11, 2020
1dd662b
impl Randomness trait for Babe and remove unused RandomBeacon trait (…
rphmeier Feb 11, 2020
60f0569
Pause Kademlia if too many connections (#4828)
tomaka Feb 11, 2020
657484a
Refactor tx factory 1 (#4870)
seerscode Feb 11, 2020
7647c39
pallet-evm: optional nonce parameter (#4893)
sorpaas Feb 11, 2020
d0e354a
Increase the penality for being offline (#4889)
tomaka Feb 11, 2020
00a400f
Add a sub command to generate a node key file (#4884)
hbakkum-dotstar Feb 11, 2020
10332c9
Benchmark Timestamp Pallet (#4891)
seerscode Feb 12, 2020
f5f7852
Add command-line flag to enable yamux flow control. (#4892)
twittner Feb 12, 2020
2723b9c
Do not allow zero Existential Deposit when using Balances (#4894)
shawntabrizi Feb 12, 2020
ea721a1
network: Use "one shot" protocol handler. (#3520)
twittner Feb 12, 2020
2290645
Benchmark the Balances Pallet (#4879)
shawntabrizi Feb 12, 2020
e1668c2
client/network-gossip: Integrate GossipEngine tasks into Future impl …
mxinden Feb 12, 2020
b955d17
add some more docs on PreRuntime digests (#4896)
rphmeier Feb 12, 2020
1b42f24
serialize partial_fee into string (#4898)
xlc Feb 12, 2020
47076a9
add sr25519 bench (#4905)
NikVolf Feb 12, 2020
d78534e
Fix chain-spec and make sure it does not breaks again (#4906)
bkchr Feb 13, 2020
b01bd0d
Full block import benchmark (#4865)
NikVolf Feb 13, 2020
d940c02
Per-things trait. (#4904)
kianenigma Feb 13, 2020
0b2ae97
executor: Migrate wasmtime backend to a high-level API (#4686)
pepyakin Feb 13, 2020
b36497a
reference sc-service with rocksdb feature (#4918)
NikVolf Feb 13, 2020
067c884
pallet-evm: add support for transaction-level create2 (#4907)
sorpaas Feb 13, 2020
7d544ef
pallet-evm: refactor duplicate code in call/create/create2 (#4922)
sorpaas Feb 13, 2020
d02c720
Adds a test to ensure that we clear the heap between calls into runti…
bkchr Feb 14, 2020
29454c3
Composite accounts (#4820)
gavofyork Feb 14, 2020
a6e7c05
Allow to distinguish out of gas from other traps (#4883)
athei Feb 14, 2020
16bb192
Adds fork-awareness and finalization notifications to transaction poo…
seunlanlege Feb 14, 2020
b27d50c
Adds `with_pair!` macro to application-crypto (#4885)
bkchr Feb 14, 2020
877e193
Remove rename for finalized event and add some docs. (#4930)
tomusdrw Feb 15, 2020
7aba7ff
Merged commit '877e193b314d42c9d77bb1740e70656b26bd0ff9' from Substrate
hoani Feb 16, 2020
9469920
Reverted #4820 (substrate), add doughnut and delegatedDispatchVerifie…
hoani Feb 18, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix timer panics in the wasm light client (#4561)
* Make WASM browser thing compile

* Fix

* updated exit-future (github repo)

* Switch to broadcast crate

* Migrate client/cli

* Switch exit-future to modernize branch

* Small changes

* Switch to cargo version and fix fg tests

* fix basic-authorship

* Fix crash on grafana macro

* Fix grafana macro

* Switch node python version

* Disable record_metrics_slice in grafana macro on wasm

* Update client/grafana-data-source/src/lib.rs

* Revert "Update client/grafana-data-source/src/lib.rs"

This reverts commit 888009a8e0b7051bd4bfbbfdb0448bcf2e2aae93.

* Add wasm support for state machine

* Switch to my own libp2p version

* Revert "Switch to my own libp2p version"

This reverts commit ce613871b59264b3165b45c37943e6560240daa7.

* Revert "Add wasm support for state machine"

This reverts commit de7eaa0694d9534fc3b164621737968e9a6a7c5f.

* Add sc-browser

* Squash

* remove sc-browser

* Fix keystore on wasm

* stubs for removed functions to make env compatible with old runtimes

* Add test (that doesn't work)

* Fix build scripts

* Revert basic-authorship due to no panics

* Revert cli/informant

* Revert consensus

* revert offchain

* Update utils/browser/Cargo.toml

Co-Authored-By: Benjamin Kampmann <[email protected]>

* export console functions

* Add new chainspec

* Fix ws in chain spec

* revert chainspec

* Fix chainspec

* Use an Option<PathBuf> in keystore instead of cfg flags

* Remove crud

* Only use wasm-timer for instant and systemtime

* Remove telemetry changes

* Assuming this is ok

* Add a KeystoreConfig

* Add stubs back in

* Update libp2p

* Revert "Add stubs back in"

This reverts commit 4690cf1882aa0f99f7f00a58c4080c8aa9b77c36.

* Remove commented js again

* Bump kvdb-web version

* Fix cli

* Switch branch on futures-timer

* Fix tests

* Remove sc-client test build in check-web-wasm because there isn't a good way to build futures-timer with wasm-bindgen support in the build

* Remove more things ^^

* Switch branch on futures-timer back

* Put DB io stats behind a cfg flag

* Fix things

* Don't timeout transports on wasm

* Update branch of futures-timer and fix bad merge

* Spawn informant

* Fix network test

* Fix delay resets

* Changes

* Fix tests

* use wasm_timer for transaction pool

* Fixes

* Switch futures-timer to crates

* Only diagnose futures on native

* Fix sc-network-test tests

* Select log level in js

* Fix syncing ;^)

* Allow disabling colours in the informant

* Use OutputFormat enum for informant

* MallocSizeOf impl on transaction pool broke stuff because wasm_timer::Instant doesnt impl it so just revert the transaction pool to master

* Update futures-diagnose

* Revert "MallocSizeOf impl on transaction pool broke stuff because wasm_timer::Instant doesnt impl it so just revert the transaction pool to master"

This reverts commit baa4ffc94fd968b6660a2c17ba8113e06af15548.

* Pass whole chain spec in start_client

* Get Instant::now to work in transaction pool again

* Informant dep reordering

Co-authored-by: Pierre Krieger <[email protected]>
Co-authored-by: Bastian Köcher <[email protected]>
Co-authored-by: Svyatoslav Nikolsky <[email protected]>
Co-authored-by: Benjamin Kampmann <[email protected]>
Co-authored-by: Demi Obenour <[email protected]>
  • Loading branch information
6 people authored Feb 10, 2020
commit ae03ee918e6338a3afc5dbd3742f5b8d7fa35271
94 changes: 71 additions & 23 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ members = [
"client/executor/wasmtime",
"client/executor/runtime-test",
"client/finality-grandpa",
"client/informant",
"client/tracing",
"client/keystore",
"client/network",
Expand Down
7 changes: 4 additions & 3 deletions bin/node/cli/browser-demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,12 @@
async function start() {
log('Loading WASM');
await init('./pkg/node_cli_bg.wasm');
log('Successfully loaded WASM');
log('Fetching chain spec');
const chain_spec_response = await fetch("https://raw.githubusercontent.com/paritytech/substrate/master/bin/node/cli/res/flaming-fir.json");
const chain_spec_text = await chain_spec_response.text();

// Build our client.
log('Starting client');
let client = await start_client(ws());
let client = await start_client(chain_spec_text, 'info', ws());
log('Client started');

client.rpcSubscribe('{"method":"chain_subscribeNewHead","params":[],"id":1,"jsonrpc":"2.0"}',
Expand Down
14 changes: 7 additions & 7 deletions bin/node/cli/src/browser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,28 +14,28 @@
// You should have received a copy of the GNU General Public License
// along with Substrate. If not, see <http://www.gnu.org/licenses/>.

use crate::ChainSpec;
use crate::chain_spec::ChainSpec;
use log::info;
use wasm_bindgen::prelude::*;
use sc_service::Configuration;
use browser_utils::{
Transport, Client,
browser_configuration, set_console_error_panic_hook, init_console_log,
};
use std::str::FromStr;

/// Starts the client.
#[wasm_bindgen]
pub async fn start_client(wasm_ext: Transport) -> Result<Client, JsValue> {
start_inner(wasm_ext)
pub async fn start_client(chain_spec: String, log_level: String, wasm_ext: Transport) -> Result<Client, JsValue> {
start_inner(chain_spec, log_level, wasm_ext)
.await
.map_err(|err| JsValue::from_str(&err.to_string()))
}

async fn start_inner(wasm_ext: Transport) -> Result<Client, Box<dyn std::error::Error>> {
async fn start_inner(chain_spec: String, log_level: String, wasm_ext: Transport) -> Result<Client, Box<dyn std::error::Error>> {
set_console_error_panic_hook();
init_console_log(log::Level::Info)?;

let chain_spec = ChainSpec::FlamingFir.load()
init_console_log(log::Level::from_str(&log_level)?)?;
let chain_spec = ChainSpec::from_json_bytes(chain_spec.as_bytes().to_vec())
.map_err(|e| format!("{:?}", e))?;

let config: Configuration<_, _> = browser_configuration(wasm_ext, chain_spec)
Expand Down
2 changes: 1 addition & 1 deletion client/authority-discovery/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ bytes = "0.4.12"
codec = { package = "parity-scale-codec", default-features = false, version = "1.0.3" }
derive_more = "0.99.2"
futures = "0.3.1"
futures-timer = "2.0"
futures-timer = "3.0.1"
libp2p = { version = "0.15.0", default-features = false, features = ["secp256k1", "libp2p-websocket"] }
log = "0.4.8"
prost = "0.6.1"
Expand Down
1 change: 1 addition & 0 deletions client/cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ tokio = { version = "0.2.9", features = [ "signal", "rt-core", "rt-threaded" ] }
futures = "0.3.1"
fdlimit = "0.1.1"
serde_json = "1.0.41"
sc-informant = { version = "0.8", path = "../informant" }
sp-panic-handler = { version = "2.0.0", path = "../../primitives/panic-handler" }
sc-client-api = { version = "2.0.0", path = "../api" }
sp-blockchain = { version = "2.0.0", path = "../../primitives/blockchain" }
Expand Down
Loading