- Mar 15, 2020
-
-
Shawn Tabrizi authored
-
- Mar 14, 2020
-
-
Max Inden authored
* client/finality-grandpa: Add Prometheus metrics to GossipValidator Instrument finality grandpa `GossipValidator` exposing count of messages validated by message type and message action. ``` \# HELP substrate_finality_grandpa_communication_gossip_validator_messages Number of messages validated by the finality grandpa gossip validator. \# TYPE substrate_finality_grandpa_communication_gossip_validator_messages counter substrate_finality_grandpa_communication_gossip_validator_messages{action="discard",message="neighbor"} 39 substrate_finality_grandpa_communication_gossip_validator_messages{action="keep",message="vote"} 28 ``` * client/finality-grandpa: Add None as Prometheus registry in tests * client/finality-granpda/src/communication: Refactor metric registration
-
Kian Paimani authored
-
- Mar 12, 2020
-
-
Web3 Philosopher authored
* removes use of sc_client::Client from node-transaction-factory * move sc-block-builder to [dev-dependencies] in substrate-test-runtime
-
Web3 Philosopher authored
* removes use of sc_client::Client from sc_network * rename BlockProvider to BlockBackend * fix broken test
-
Stanislav Tkach authored
-
- Mar 11, 2020
-
-
Arkadiy Paronyan authored
* ChainSpec trait * Apply suggestions from code review Co-Authored-By: Bastian Köcher <[email protected]> * Added docs * Fixed build * Fixed build Co-authored-by: Bastian Köcher <[email protected]>
-
Max Inden authored
* client/authority-discovery: Instrument code with Prometheus Introduce Prometheus metrics into the authority discovery module enabling one to observe: - authority_discovery_times_published_total - authority_discovery_amount_external_addresses_last_published - authority_discovery_times_requested_total - authority_discovery_dht_event_received * client/authority-discovery/src/lib.rs: Reword metric help texts Co-Authored-By: Ashley <[email protected]> * client/authority-discovery/src/lib.rs: Reword metric help text Co-Authored-By: Ashley <[email protected]> * client/authority-discovery/tests: Fix struct instantiation + basic test Co-authored-by: Ashley <[email protected]>
-
Stanislav Tkach authored
* Use CLI to configure max instances cache * Fix tests * Move default value into CLI * Use SmallVec * Apply review comments * Get rid of `SmallVec` Co-authored-by: Bastian Köcher <[email protected]>
-
- Mar 10, 2020
-
-
Pierre Krieger authored
* Minor fixes for Android * Update parity-multiaddr * Bump in service Cargo.toml too
-
Bastian Köcher authored
* Don't include `:code` by default in storage proofs (#5060) * Adds test to verify that the runtime currently is always contained in the proof * Start passing the runtime wasm code from the outside * Fix compilation * More build fixes * Make the test work as expected now :) * Last fixes * Fixes benchmarks * Review feedback * Apply suggestions from code review Co-Authored-By: Sergei Pepyakin <[email protected]> * Review feedback * Fix compilation Co-authored-by: Sergei Pepyakin <[email protected]> * Fix compilation and change the way `RuntimeCode` works * Fix tests * Switch to `Cow` Co-authored-by: Benjamin Kampmann <[email protected]> Co-authored-by: Sergei Pepyakin <[email protected]>
-
Max Inden authored
* client/service/src/builder.rs: Add build_info metric Add static Prometheus metric exposing the chain name, the version and the commit. * client/service/src/builder.rs: Move node_role to static metrics The Prometheus metrics `node_role` is static and thus there is no need to keep a reference of it within `ServiceMetrics`. This follows the example of the `build_info` metric. * client/service/src/builder.rs: Adjust indentation
-
Igor Matuszewski authored
* offchain: Simplify bits of http code * offchain: Sort dev-dependencies * deps: Bump parity-multiaddr to 0.7.3 Fixes build failure when using: rustc 1.43.0-nightly (96bb8b31c 2020-03-05). * offchain: Raise FD limit for HTTP tests * offchain: Reword the comment on increasing the test fd limit
-
- Mar 09, 2020
-
-
André Silva authored
* grandpa: only gossip commits to peers on the same set * grandpa: track commits uniquely by round and set * grandpa: fix communication test * grandpa: add tests for commit gossip handling * grandpa: add missing docs
-
Max Inden authored
* client/network-gossip: Merge GossipEngine and GossipEngineInner Given that GossipEngine and GossipEngineInner are not shared between threads anyone (public interface + background tasks), neither depends on being Send or Sync. Thus one can merge the two as done in this patch. One only needs to wrap an `Arc<Mutex<>>` around the whole structure when the owner (e.g. finality-grandpa) needs to share the gossip engine between threads. * client/finality-grandpa: Wrap GossipEngine in Arc Mutex & lock it on use GossipEngine in itself has no need to be Send and Sync, given that it does not rely on separately spawned background tasks anymore. Given that finality-grandpa shares the `NetworkBridge` potentially between threads its components need to be clonable, thus this patch wraps `GossipEngine` in an `Arc<Mutex<>>`.
-
- Mar 06, 2020
-
-
Pierre Krieger authored
* Fix NotificationStreamClosed reported when it shouldn't * Fix test * Add test * Update client/network/src/protocol.rs Co-Authored-By: Bastian Köcher <[email protected]> * Oops, fix test Co-authored-by: Bastian Köcher <[email protected]>
-
Nikolay Volf authored
* remove all from members * add test
-
Ashley authored
-
André Silva authored
* client: fix notification sinks leak during initial sync * client: add test for notification sink cleanup * Make it compile * Further cleanup * client: fix test for notification sinks cleanup Co-authored-by: Bastian Köcher <[email protected]>
-
Nikolay Volf authored
* add state/database caches to prometheus * also state-db memory * use suggestions from review
-
André Silva authored
-
Bastian Köcher authored
* Revert "Build block without checking signatures (#4916)" This reverts commit dc92587b. * Some further clean ups
-
- Mar 05, 2020
-
-
Gavin Wood authored
* Revert "use fixed quote (#5135)" This reverts commit bea883b3 . * Upgrade failure version * Update frame/staking/reward-curve/Cargo.toml Co-Authored-By: André Silva <[email protected]> * Ahh I'm dumb Co-authored-by: Gavin Wood <[email protected]> Co-authored-by: André Silva <[email protected]>
-
Gavin Wood authored
* Add some metrics * Address concerns
-
Gavin Wood authored
* Remove `Backend::destroy_state` This removes the `destroy_state` function of `Backend` and instead moves the functionality into the `Drop` implementation of the state. This makes it much easier to work with the state, as the user no longer needs to call` destroy_state` manually. However, it requires that we switch from `RwLock` to `ReentrantMutex` as while importing a block we maybe need to lock again in `drop`. * Bring back the `RwLock` and some other clean ups * Fix compilation
-
Gavin Wood authored
The only up-to-date deployment of PolkadotJS apps is currently on https://polkadot.js.org/apps/. https://substrate-ui.parity.io is only useful as deliberately kept outdated version of Apps, to be used for projects still on Substrate 1.0 It cannot be used with the up-to-date chains running the Substrate 2.0 codebase, and probably won't be maintained much longer.
-
Gavin Wood authored
-
Gavin Wood authored
* Don't remove invalid transactions when skipping. * Use a special kind of extrinsic instead of arbitrary limit. * Fix txpool tests. * Attempt to create more blocks. * Bump lock Co-authored-by: Gavin Wood <[email protected]> Co-authored-by: Nikolay Volf <[email protected]>
-
Benjamin Kampmann authored
* removes use of sc_client::Client from sc-rpc * remove Client impl from sc-finality-benches * remove client impl from sc-finality-grandpa * read_proof accepts iterator * remove generic Executor param from ExecutorProvider * fix long ass line * code style changes * merge with master Co-authored-by: Arkadiy Paronyan <[email protected]>
-
Benjamin Kampmann authored
* Wasm instance cache * Reduce slot locking * Fixed test * Dispose of instance in case of error * Fixed benches * Style, comments, some renames * Replaced upgradable lock with mutex * Bump dependencies * Re-export CallInWasm * Update client/executor/src/wasm_runtime.rs Co-Authored-By: Bastian Köcher <[email protected]> * Update client/executor/src/native_executor.rs Co-Authored-By: Bastian Köcher <[email protected]> * Update client/executor/src/native_executor.rs Co-Authored-By: Bastian Köcher <[email protected]> * Update client/executor/src/wasm_runtime.rs Co-Authored-By: Bastian Köcher <[email protected]> * Update client/executor/wasmtime/src/runtime.rs Co-Authored-By: Bastian Köcher <[email protected]> * Update client/executor/src/wasm_runtime.rs Co-Authored-By: Bastian Köcher <[email protected]> * Update client/executor/src/wasm_runtime.rs Co-Authored-By: Bastian Köcher <[email protected]> * Update client/executor/src/wasm_runtime.rs Co-Authored-By: Bastian Köcher <[email protected]> * Indents * Whitespace * Formatting * Added issue link Co-authored-by: Benjamin Kampmann <[email protected]> Co-authored-by: Gavin Wood <[email protected]> Co-authored-by: Bastian Köcher <[email protected]>
-
Gavin Wood authored
* Add a few metrics to Client * Improve PrometheusConfig * Fix client docs
-
Gavin Wood authored
-
Benjamin Kampmann authored
-
Arkadiy Paronyan authored
This reverts commit a193a19d.
-
Gavin Wood authored
-
Gavin Wood authored
* Reorganize tasks into task manager * move to separate file and improve api * address api issues * fix spawning inside closures * decouple executor * tasks_setup -> tasks_builder * remove drops * add deprecatiion comment * add pub(super) * fix identation
-
Benjamin Kampmann authored
This reduces the usage of `Blake2Hasher` in the code base and replaces it with `BlakeTwo256`. The most important change is the removal of the custom extern function for `Blake2Hasher`. The runtime `Hash` trait is now also simplified and directly requires that the implementing type implements `Hashable`.
-
- Mar 04, 2020
-
-
Benjamin Kampmann authored
* Adds test to verify that the runtime currently is always contained in the proof * Start passing the runtime wasm code from the outside * Fix compilation * More build fixes * Make the test work as expected now :) * Last fixes * Fixes benchmarks * Review feedback * Apply suggestions from code review Co-Authored-By: Sergei Pepyakin <[email protected]> * Review feedback * Fix compilation Co-authored-by: Sergei Pepyakin <[email protected]>
-
Benjamin Kampmann authored
* Forget peerstore nodes after 5mn * Bump to one hour * Also bump on rediscover
-
Benjamin Kampmann authored
-