- Mar 17, 2020
-
-
Nikolay Volf authored
* make sure return ready iterator once state is updated * update sc_basic_authorship tests * update node tests * fix manual seal * actually fix service test * add tests * Update client/basic-authorship/src/basic_authorship.rs Co-Authored-By: Tomasz Drwięga <[email protected]> * helper function * review suggestions * warning and continue * add debug log * use futures::chennel::oneshot * use declaration bound * no option for updated_at * no allocation * ready_at / ready * Update client/transaction-pool/src/lib.rs Co-Authored-By: Bastian Köcher <[email protected]> * Update client/transaction-pool/src/lib.rs Co-Authored-By: Bastian Köcher <[email protected]> * Update client/transaction-pool/src/lib.rs Co-Authored-By: Bastian Köcher <[email protected]> * Update client/transaction-pool/src/lib.rs Co-Authored-By: Bastian Köcher <[email protected]> * Update client/transaction-pool/src/lib.rs Co-Authored-By: Bastian Köcher <[email protected]> * Update client/transaction-pool/src/lib.rs Co-Authored-By: Bastian Köcher <[email protected]> Co-authored-by: Tomasz Drwięga <[email protected]> Co-authored-by: Bastian Köcher <[email protected]>
-
Arkadiy Paronyan authored
-
Max Inden authored
* client/network/src/protocol: Start Prometheus metric help with capital * client/network/src/protocol: Differentiate metric status as label Prometheus query language is powerful through its multi-dimensional data model. Metric names are hirarchical whereas labels enable data to become multi-dimensional. Exposing the justification of finality-proof status as a label allows for more powerful queries. * client/network/src/protocol: Remove 'Total' from non counter metric help The word 'total' is reserved for accumulating counters. Counters have to be monotonically increasing. `obsolete_requests` can decrease, thereby it is defined as a `Gauge` and not a `Counter`. For more details on metric naming see https://prometheus.io/docs/practices/naming/
-
- Mar 16, 2020
-
-
Wei Tang authored
* fork-tree: prune returns all pruned node data * epoch-changes: split EpochHeader vs epoch data * EpochChanges::viable_epoch and add missing comments * Incoperate the new epoch_changes interface for BABE * Fix BABE tests * Fix fork-tree pruning issue * Fix tests * Fix pruning algorithm * fork-tree: implement map function for mapping one value type to another * Add migration script for new epoch changes scheme * Update utils/fork-tree/src/lib.rs Co-Authored-By: André Silva <[email protected]> * Update client/consensus/slots/src/lib.rs Co-Authored-By: André Silva <[email protected]> * Remove authorities_len.is_none check, which is duplicate of unwrap_or(false) * Update client/consensus/epochs/src/lib.rs Co-Authored-By: André Silva <[email protected]> * Update client/consensus/epochs/src/lib.rs Co-Authored-By: André Silva <[email protected]> * No trailing ; for return statement * Use VERSION_KEY for migration * Fix issues that removed nodes are not properly added into removed list * Add comments indicating end_slot is non-inclusive * fork-tree: use &mut F for map type declaration * Add tests for v0 epoch_changes migration * Fix babe RPC tests Co-authored-by: André Silva <[email protected]>
-
Nikolay Volf authored
-
Stanislav Tkach authored
-
- Mar 15, 2020
-
-
Bastian Köcher authored
* Move runtime upgrade to `frame-executive` Instead of storing the runtime upgraded in the space of `frame-system`, this moves it to `frame-executive`. We also start storing the `spec_version` and `impl_version` the last runtime upgrade was applied. This scheme has multiple advantages: - We don't need to make sure that runtime upgrade was set. - This will work in the future when we want to test a runtime upgrade, because the `on_runtime_upgrade` will be executed automatically when the runtime changes. * Move `LAST_RUNTIME_UPGRADE` key to `frame-executive` * Add some more documentation * Make sure `spec_version` always increases between runtime upgrades * Fix test * Upgrade `parity-multiaddr` to fix compilation * Also check if the `spec_name` changed * Remove `RuntimeUpgraded` storage entry * Don't run on genesis
-
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 e50f6109. * Some further clean ups
-
- Mar 05, 2020
-
-
Gavin Wood authored
* Revert "use fixed quote (#5135)" This reverts commit 8bf855b0 . * 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
-