This repository was archived by the owner on Nov 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Fix timer panics in the wasm light client #4561
Merged
Merged
Changes from 131 commits
Commits
Show all changes
144 commits
Select commit
Hold shift + click to select a range
f29a872
Make WASM browser thing compile
tomaka bcffb1b
Merge remote-tracking branch 'upstream/polkadot-master' into wasm-demo-3
tomaka f7e592e
Merge remote-tracking branch 'upstream/master' into wasm-demo-3
tomaka 2ff5a08
Fix
tomaka ccdab42
updated exit-future (github repo)
expenses dc97828
Switch to broadcast crate
expenses c18f432
Migrate client/cli
expenses aec8ec7
Merge remote-tracking branch 'parity/master' into ashley-update-exit-…
expenses e7f55e3
Merge remote-tracking branch 'parity/master' into ashley-update-exit-…
expenses 3cdde59
Merge remote-tracking branch 'tomaka/wasm-demo-3' into async-update-e…
expenses e32be2e
Merge remote-tracking branch 'parity/master' into ashley-update-exit-…
expenses fe5b409
Merge remote-tracking branch 'parity/master' into ashley-update-exit-…
expenses 22cda22
Merge remote-tracking branch 'parity/master' into ashley-update-exit-…
expenses 03237f4
Switch exit-future to modernize branch
expenses 02fbad5
Merge branch 'ashley-update-exit-future' into ashley-update-exit-futu…
expenses a488106
Small changes
expenses 6579d12
Switch to cargo version and fix fg tests
expenses 8ae6cb3
Merge branch 'ashley-update-exit-future' into ashley-polkadot-wasm
expenses 731fe09
Merge remote-tracking branch 'parity/master' into ashley-polkadot-wasm
expenses 6529de9
Merge branch 'master' of https://github.com/paritytech/substrate into…
expenses 159f92c
fix basic-authorship
expenses ff1bf2e
Fix crash on grafana macro
expenses 8238ecd
Fix grafana macro
expenses b8c1493
Merge branch 'master' of github.com:paritytech/substrate into ashley-…
expenses 4d4d3b0
Switch node python version
expenses e3c95aa
Disable record_metrics_slice in grafana macro on wasm
expenses aad207b
Merge remote-tracking branch 'parity/master' into ashley-polkadot-wasm
expenses 888009a
Update client/grafana-data-source/src/lib.rs
bkchr a1de6f2
Merge branch 'ashley-grafana-wasm' into ashley-polkadot-wasm
expenses 7147f9e
Merge remote-tracking branch 'parity/ashley-grafana-wasm' into ashley…
expenses 6312665
Revert "Update client/grafana-data-source/src/lib.rs"
expenses 87c7a81
Merge remote-tracking branch 'parity/master' into ashley-polkadot-wasm
expenses 2d225ca
Merge remote-tracking branch 'parity/master' into ashley-polkadot-wasm
expenses de7eaa0
Add wasm support for state machine
expenses f510164
Merge remote-tracking branch 'parity/master' into ashley-polkadot-wasm
expenses ce61387
Switch to my own libp2p version
expenses dad562c
Revert "Switch to my own libp2p version"
expenses d062bd5
Merge remote-tracking branch 'parity/master' into ashley-polkadot-wasm
expenses 51964b3
Revert "Add wasm support for state machine"
expenses 17aac45
Merge remote-tracking branch 'parity/master' into ashley-polkadot-wasm
expenses f75479a
Add sc-browser
expenses e73aac3
Squash
expenses 983dbb1
Merge branch 'ashley-browser-utils' into HEAD
expenses 2eb18e5
Merge remote-tracking branch 'parity/master' into HEAD
expenses e3769b4
remove sc-browser
expenses 7d32a2e
Merge remote-tracking branch 'parity/master' into ashley-browser-utils
expenses 2299645
Fix keystore on wasm
expenses cfe8fdb
Merge branch 'ashley-browser-utils' into ashley-polkadot-wasm
expenses 4612940
stubs for removed functions to make env compatible with old runtimes
svyatonik e55a790
Merge remote-tracking branch 'parity/child_tries_compat_with_old_runt…
expenses 06f1c3a
Merge remote-tracking branch 'parity/master' into ashley-polkadot-wasm
expenses 03459d1
Add test (that doesn't work)
expenses ec4cb3e
Fix build scripts
expenses 571bff9
Revert basic-authorship due to no panics
expenses 3df4214
Revert cli/informant
expenses 3f51d3a
Revert consensus
expenses 9ffeac2
revert offchain
expenses a42413b
Update utils/browser/Cargo.toml
expenses ec53ba6
Merge remote-tracking branch 'parity/master' into ashley-browser-utils
expenses 808e01a
export console functions
expenses 2d8f94f
Merge branch 'ashley-browser-utils' of github.com:paritytech/substrat…
expenses 30ad8a7
Merge remote-tracking branch 'parity/master' into ashley-polkadot-wasm
expenses 910b12c
Merge remote-tracking branch 'parity/ashley-browser-utils' into ashle…
expenses 928b5bb
Merge remote-tracking branch 'parity/master' into ashley-polkadot-wasm
expenses bc5de9b
Add new chainspec
expenses 41f50fb
Fix ws in chain spec
expenses 243b9a1
Merge remote-tracking branch 'parity/master' into ashley-browser-utils
expenses ddd697b
Merge remote-tracking branch 'parity/master' into ashley-polkadot-wasm
expenses 1755c69
Merge remote-tracking branch 'parity/master' into ashley-polkadot-wasm
expenses 3f1b774
revert chainspec
expenses f0a6a6c
Merge remote-tracking branch 'parity/master' into ashley-polkadot-wasm
expenses aa52da8
Merge remote-tracking branch 'parity/master' into ashley-polkadot-wasm
expenses 933d24d
Fix chainspec
expenses e40d8a2
Merge remote-tracking branch 'parity/master' into ashley-browser-utils
expenses 3406be5
Use an Option<PathBuf> in keystore instead of cfg flags
expenses 182d402
Merge branch 'ashley-browser-utils' of github.com:paritytech/substrat…
expenses 692cf9f
Merge branch 'ashley-browser-utils' into ashley-polkadot-wasm
expenses 427052c
Remove crud
expenses 5a4e4a6
Only use wasm-timer for instant and systemtime
expenses ae47297
Remove telemetry changes
expenses 715aad1
Assuming this is ok
expenses 2b292f0
Add a KeystoreConfig
expenses a4c2e3c
Merge remote-tracking branch 'parity/master' into ashley-browser-utils
expenses 4690cf1
Add stubs back in
expenses 4e8b6be
Merge remote-tracking branch 'parity/master' into ashley-polkadot-wasm
expenses 7fe5701
Update libp2p
expenses 4f04db9
Revert "Add stubs back in"
expenses 25c8559
Remove commented js again
expenses 19953b5
Merge branch 'ashley-browser-utils' into ashley-polkadot-wasm
expenses 72fffb4
Merge remote-tracking branch 'parity/master' into ashley-browser-utils
expenses 01e6bbb
Merge remote-tracking branch 'parity/master' into ashley-polkadot-wasm
expenses dcd0dcb
Merge branch 'ashley-browser-utils' into ashley-polkadot-wasm
expenses 3c9c6a8
Merge remote-tracking branch 'parity/master' into ashley-browser-utils
expenses 48ac10f
Bump kvdb-web version
expenses ee17a06
Fix cli
expenses 6c9e3df
Merge remote-tracking branch 'parity/master' into ashley-browser-utils
expenses 1974eac
Merge branch 'ashley-browser-utils' into ashley-polkadot-wasm
expenses f232a55
Merge remote-tracking branch 'parity/master' into ashley-polkadot-wasm
expenses 95ca1f8
Merge remote-tracking branch 'parity/master' into ashley-polkadot-wasm
expenses 353f6e6
Switch branch on futures-timer
expenses 3e7f82c
Fix tests
expenses bbfbcf2
Remove sc-client test build in check-web-wasm because there isn't a g…
expenses b6a46c4
Remove more things ^^
expenses fd1dc55
Switch branch on futures-timer back
expenses 40e445f
Merge remote-tracking branch 'parity/master' into ashley-polkadot-wasm
expenses d5c9c17
Put DB io stats behind a cfg flag
expenses 3053e25
Merge remote-tracking branch 'parity/master' into ashley-polkadot-wasm
expenses 684b8fa
Fix things
expenses 10bdcf2
Don't timeout transports on wasm
expenses 25c0fed
Update branch of futures-timer and fix bad merge
expenses 7f86d6a
Spawn informant
expenses 2f2508b
Merge remote-tracking branch 'parity/master' into ashley-polkadot-wasm
expenses a33f9ed
Fix network test
expenses b91a797
Merge remote-tracking branch 'parity/master' into ashley-polkadot-wasm
expenses 6d8ecff
Merge remote-tracking branch 'parity/master' into ashley-polkadot-wasm
expenses d62d011
Merge remote-tracking branch 'parity/master' into ashley-polkadot-wasm
expenses 8b4f63d
Fix delay resets
expenses 9ba7353
Merge remote-tracking branch 'parity/master' into ashley-polkadot-wasm
expenses c7096ca
Changes
expenses fe05eae
Merge remote-tracking branch 'parity/master' into ashley-polkadot-wasm
expenses 90e0051
Fix tests
expenses 681c965
use wasm_timer for transaction pool
expenses c6b7060
Fixes
expenses 9e447c6
Switch futures-timer to crates
expenses e6e719a
Merge remote-tracking branch 'parity/master' into ashley-polkadot-wasm
expenses 7f211de
Only diagnose futures on native
expenses 3b80560
Fix sc-network-test tests
expenses 35a5314
Merge remote-tracking branch 'parity/master' into ashley-polkadot-wasm
expenses 3243e85
Select log level in js
expenses 69f107b
Fix syncing ;^)
expenses 4585163
Merge remote-tracking branch 'parity/master' into ashley-polkadot-wasm
expenses 9355217
Merge branch 'master' into ashley-polkadot-wasm
Demi-Marie b36891c
Allow disabling colours in the informant
expenses 50cd2c1
Merge branch 'ashley-polkadot-wasm' of github.com:paritytech/substrat…
expenses c8ad072
Merge remote-tracking branch 'parity/master' into ashley-polkadot-wasm
expenses d9c20f7
Use OutputFormat enum for informant
expenses ad1dfb1
Merge remote-tracking branch 'parity/master' into HEAD
expenses baa4ffc
MallocSizeOf impl on transaction pool broke stuff because wasm_timer:…
expenses 7260ef0
Update futures-diagnose
expenses f20e65d
Revert "MallocSizeOf impl on transaction pool broke stuff because was…
expenses 2aa0ace
Pass whole chain spec in start_client
expenses 2d13a74
Get Instant::now to work in transaction pool again
expenses 02dfbf6
Merge remote-tracking branch 'parity/master' into ashley-polkadot-wasm
expenses 5b0117d
Informant dep reordering
expenses File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| [package] | ||
| name = "sc-informant" | ||
| version = "0.8.0" | ||
| authors = ["Parity Technologies <admin@parity.io>"] | ||
| description = "Substrate informant." | ||
| edition = "2018" | ||
| license = "GPL-3.0" | ||
|
|
||
| [dependencies] | ||
| ansi_term = "0.12.1" | ||
| wasm-timer = "0.2" | ||
| futures = "0.3.1" | ||
| log = "0.4.8" | ||
| sc-client-api = { version = "2.0.0", path = "../api" } | ||
| sc-network = { version = "0.8", path = "../network" } | ||
| sc-service = { version = "0.8", default-features = false, path = "../service" } | ||
| sp-blockchain = { version = "2.0.0", path = "../../primitives/blockchain" } | ||
| sp-runtime = { version = "2.0.0", path = "../../primitives/runtime" } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As usual, platform-specific code really isn't a great thing.
I'd prefer to have a runtime flag that allows enabling/disabling colour output.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On the one hand, I agree. On the other hand, what if the flag is enabled when compiling for wasm? That cannot possibly work. So we need to give an error here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Adding colours is just about inserting control characters within the string. If the flag is enabled on WASM, everything will still work perfectly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've added a
Configurationoption for this, but not a cli flag.