- Jul 25, 2019
-
-
Pierre Krieger authored
* Really fix #2652 this time * Other fixes * Minor style fix
-
Pierre Krieger authored
* Split informant in two * Clean up imports * Don't rely on saturated_into * Add some documentation to the informant display
-
- Jul 24, 2019
-
-
André Silva authored
* babe: add babe module trait * babe: track current slot and epoch start slot * babe: implement ShouldEndSession based on epochs * babe: rename weight type to avoid ambiguities * babe: expose epoch start slot in Epoch digest * babe: use epoch start for validating epoch transitions * babe: make the epoch duration a parameter type * babe: remove unused fields from config * node: update runtime to use babe instead of aura * node: use babe instead of aura * core: generate sr25519 keys from seed and add to keystore * core: remove AuthorityKeyring * node: remove unused primitive types related to babe crypto * uniform babe primitives crate import name * wrap long lines * babe: fix find_epoch_digest * fork-tree: fix find_node_where * node: set babe epoch duration to "10 minutes" * babe: cleanup import key cache if authorities don't change * node: make integration test compile (but fail) * node: bump spec_version * node: fix import * babe: don't use constants in storage fields array sizes * babe: account for first epoch slot way in the past * babe: signal next epoch change (not current) * babe: calculate next epoch randomness with next epoch index * babe: track next epoch in node * babe: cache current epoch and authorities separately * babe: generate valid babe vrf proofs in integration test * babe: cleanup claim_slot * babe: perform threshold calculation according to spec * babe: compute relative weight in threshold * babe: more precise threshold calculation * babe: use floats for threshold exponent calculation * babe: update constant c
-
- Jul 11, 2019
-
-
Pierre Krieger authored
* Switch the client to new futures * No need for compat in the client * Fix client tests * Address review
-
Bastian Köcher authored
* Cleanup CLI and introduce `execution-all` `--execution-all` sets the execution strategies for all available execution contexts. * Rename parameter
-
- Jul 09, 2019
-
-
Max Inden authored
Given the following situation: A validator 'A' is not supposed to be connected to the public internet to protect it from e.g. a DoS attack. Instead it connects to a sentry node 'sentry-A' which connects to the public internet. Validator 'B' can reach validator 'A' via sentry node 'sentry-A' and vice versa. A sentry node needs to participate in the grandpa gossip without becoming a validator itself in order to forward these message to its validator. This commit adds a new command line flag (`--grandpa-voter`) forcing a node to participate in the grandpa voting process even though no `--key` was specified. Due to the fact that it does not have a key, it does not become a validator in the network. In order to simulate the above situation this commit also adds a Docker Compose file (`scripts/sentry-node/docker-compose.yml`) with further documentation.
-
Tomasz Drwięga authored
* Implement sign & verify. * Use phrases and password. * Sign & verify with authority keys. * Fix tests. * WiP * WiP * Allow the caller to decide on 'CryptoKind'. * Remove TODO. * Make seed private back. * Fix non-std build and bump version. * Use Into<u32> instead of asses. * Add missing typedef.
-
- Jul 08, 2019
-
-
Pierre Krieger authored
* Remove useless internal messages * Remove NetworkService::disconnect_peer * Remove NetworkMsg altogether * Rename ProtocolMsg ServerToWorkerMsg * Remove useless code * Add example for parse_str_addr * Move parse_str_addr and ProtocolId to config * Don't reexport the content of config * Rework the imports * More reexports rework * Add documentation * Move finalization report to network future * Move on_block_imported to worker * get_value/put_value no longer locking * local_peer_id() no longer locks * Remove FetchFuture * Service imports cleanup * Produce the network state in the network task * Merge network task and RPC network task * Move network methods to NetworkWorker * Remove Arc peers system from network * add_reserved_peer now goes through the channel * Remove Mutex around network swarm * Remove the FnOnce alias traits * Replace is_offline with num_connected * Improve style of poll() * Fix network tests * Some doc in service module * Remove macro export * Minor doc changes * Remove the synchronized() method of the import queue * Line width * Line widths * Fix import queue tests * Fix CLI tests
-
- Jul 05, 2019
-
-
Pierre Krieger authored
* Add a memory-only option for the network * Tests cleanup * Make grandpa/aura/babe compile * Aura and Babe tests now passing * More work on tests rewrite * Attempt to fix grandpa * Make more grandpa tests pass * More grandpa tests work * Work on sync tests * More work * light_peer_imports_header_from_announce passes * can_sync_small_non_best_forks passes * syncing_node_not_major_syncing_when_disconnected passes * blocks_are_not_announced_by_light_nodes passing * All sync tests passing
🎉 * Some TestNet cleanup * Work on grandpa tests * More grandpa work * GrandPa work * Add check about block_import * Remove the temporarily added Sync * Fix network tests warnings * voter_persists_its_votes passes * Fix imports in network tests * Fix service tests * Call on_block_imported🤷 * Add shortcut * Finish using shortcut
-
- Jul 04, 2019
-
-
Pierre Krieger authored
* Can now disable the keystore * Fix service test * Apply suggestions from code review Co-Authored-By:
Bastian Köcher <[email protected]> * Fix cli
-
- Jun 26, 2019
-
-
Pierre Krieger authored
* Remove dependencies on tokio * Make service not depend on tokio * Fix service tests * Manually poll the import queue if failed to start * Spawn all tasks at the end * Remove executor from TelemetryOnConnect * Remove TaskExecutor from offchain workers * Remove TaskExecutor from AuthoritySetup * Remove TaskExecutor from service * Remove tokio dependency from RPC * Remove finality-grandpa from WASM checks * Fix offchain tests * Line widths * Fix RPC tests * Fix service tests * Fix bad futures polling * Address some concerns * Better error handling * Is it the connectivity test that's not passing? I don't know, let's try * Revert "Is it the connectivity test that's not passing? I don't know, let's try" This reverts commit 28bbe51f. * Fix test
-
- Jun 21, 2019
-
-
Pierre Krieger authored
* Move the network status reporting to the service * Fix tests * Fix build
-
- Jun 15, 2019
-
-
Pierre Krieger authored
* Rework RPC queries * Remove SyncProvider trait * Fix RPC tests
-
- Jun 12, 2019
-
-
Pierre Krieger authored
* Move the telemetry information to service * Proper exit
-
- Jun 04, 2019
-
-
Bastian Köcher authored
* Fix tons of warnings in newest nightly * Fix sr-api-macro doc tests
-
Pierre Krieger authored
-
- May 30, 2019
-
-
Tomasz Drwięga authored
-
- May 28, 2019
-
-
Michael Müller authored
* Fix typos * Add transaction factory `cargo run -- purge-chain -y --chain dev && cargo run -- --dev --transaction-factory 10` * Fix comment and remove build deps * Move crate to test-utils * Switch from flag to subcommand `cargo run -- factory --dev --num 5` * Decouple factory from node specifics * Introduce different manufacturing modes * Remove unrelated changes * Update Cargo.lock * Use SelectChain to fetch best block * Improve expect proof * Panic if factory executed with unsupported chain spec * Link ToDo comments to follow-up ticket * Address comments and improve style * Remove unused dependencies * Fix indent level * Replace naked unwrap * Update node/cli/src/factory_impl.rs * Fix typo * Use inherent_extrinsics instead of timestamp * Generalize factory and remove saturated conversions * Format imports * Make it clearer that database needs to be empty * Ensure factory settings * Apply suggestions from code review Co-Authored-By:
Bastian Köcher <[email protected]> * Update test-utils/transaction-factory/src/lib.rs Co-Authored-By:
Bastian Köcher <[email protected]> * Fix match guard syntax * Simplify import, remove empty line * Update node/cli/Cargo.toml * Update lockfile
-
Jordan Beauchamp authored
-
Benjamin Kampmann authored
* Silence known deprecation warnings 1. Prefixes known instances of usages of client.backend and client.import_lock with `#[allow(deprecated)]` to silence the warnings. 2. Remove file-global `#![allow(deprecated)]` used in these cases. Both to prevent us overlooking externally caused deprecation messages. * fixing missing ; * fix missing test cases * move deprecated markers to make CI happy * move deprecated markers to make CI happy * attempt to fix the test * bumping impl_version of node runtime * Minor cleanup
-
- May 24, 2019
-
-
Tomasz Drwięga authored
* Remove error_chain * Expunge error-chain from rpc and service. * Expunge from transaction pool. * Expunge from node/cli * Expunge from keystore. * Remove some boilerplate. * Fix remaining stuff. * Improve on deprecation message. * Fix issues. * Fix trnsaction pool tests. * Fix the rest. * Fix borked merge. * Update lock
-
- May 23, 2019
-
-
André Silva authored
* core: allow setting max ws rpc connections * style: break long lines * core: fix service tests
-
Pierre Krieger authored
* Remove TaskExecutor from the API of the informant * Fix node-template
-
- May 22, 2019
-
-
Gavin Wood authored
* Start to remove the `As` bound on `SimpleArtithmetic` This just introduces standard numeric bounds, assuming a minimum of `u32`. Also included is a saturating from/into trait allowing ergonomic infallible conversion when you don't care if it saturates. * Remove As from Balances trait * Remove As from Aura module * Remove As from Babe module * Expunge `As` from contract * Council module * Democracy * Finality tracker * Grandpa * First bit of indices * indices * Line lengths * session * system * Staking * Square up all other uses of As. * RHD update * Fix build/test * Remove As trait * line widths * Remove final As ref * Update srml/staking/src/lib.rs Co-Authored-By:
Bastian Köcher <[email protected]> * Update core/client/src/cht.rs Co-Authored-By:
Bastian Köcher <[email protected]> * Update core/client/db/src/light.rs Co-Authored-By:
Bastian Köcher <[email protected]> * Apply suggestions from code review Co-Authored-By:
Bastian Köcher <[email protected]> * whitespace * Apply suggestions from code review Co-Authored-By:
Bastian Köcher <[email protected]> Co-Authored-By:
André Silva <[email protected]> * Bring back u32 check for number on CLI
-
- May 20, 2019
-
-
Pierre Krieger authored
* Update to libp2p 0.8 * Fix CLI tests * Zeroize
-
- May 15, 2019
-
-
郭光华 authored
* Add tty password input * Move password from core/service to core/cli * Fix test build error * Password should be entered only once if it's for decoding * Update Cargo.lock from rebuild
-
- May 14, 2019
-
-
Andrew Jones authored
-
- May 10, 2019
-
-
André Silva authored
* bump crates to v2.0.0 * fix crate authors * bump node runtime spec_version * remove unused import for no-std
-
- May 09, 2019
-
-
Michael Müller authored
* Imply forced authoring on --dev * Combine conditionals
-
- May 04, 2019
-
-
Pierre Krieger authored
-
- May 01, 2019
-
-
Xiliang Chen authored
-
- Apr 26, 2019
-
-
Michael Müller authored
* Fix typos * Align properly * Update core/consensus/slots/src/lib.rs Co-Authored-By:
cmichi <[email protected]> * Update core/network/src/test/mod.rs Co-Authored-By:
cmichi <[email protected]> * Update core/finality-grandpa/src/communication/mod.rs Co-Authored-By:
cmichi <[email protected]> * Update core/consensus/common/src/import_queue.rs Co-Authored-By:
cmichi <[email protected]>
-
- Apr 25, 2019
-
-
Tomasz Drwięga authored
* WiP: HTTP Apis. * Working on the API. * Add docs, clean up the API. * Expose ext_ stuff as well. * Implement HTTP helpers for offchain sr-io. * Remove HTTP stuff. * Remove spurious leading `::` Co-Authored-By:
DemiMarie-parity <[email protected]> * Rename in toml. * Add issue number. * Bump version.
-
Tomasz Drwięga authored
-
- Apr 23, 2019
-
-
Michael Müller authored
* Allow configuring state cache size via cli * Track used cache size * Expose memory counter to informant * Enforce max cache size constraint exactly * Default to 64 MiB Co-Authored-By:
cmichi <[email protected]> * Remove self as parameter
-
- Apr 22, 2019
-
-
mattrutherford authored
* change NetworkState from string to json in telemetry
-
- Apr 17, 2019
-
-
Pierre Krieger authored
-
- Apr 16, 2019
-
-
Tomasz Drwięga authored
* Disable cors in dev mode, * Whitelist substrate-ui. * Fix build. * Update docs.
-
- Apr 14, 2019
-
-
Xiliang Chen authored
-
- Apr 11, 2019
-
-
Andrew Jones authored
* WIP: convert client error * Remove error_chain for client error * Ignore tx-pool error deprecation warning * Update Cargo.lock files * Fix tests * Increment impl_version * Derive From impls, remove allow(missing_docs) * Remove space * Remove redundant into()s * Blockchain Error source * Bump impl version
-