- Jul 08, 2020
-
-
pscott authored
* Use flexi_logger; Add log rotation * Add default rotation; Add FlexiLogger error * Fix compilation error * Remove logging to stdout if it's not a tty * Fix formatting Co-authored-by: Kian Paimani <[email protected]> * Remove needless debug statement * Default to unlimited size for log rotation * Add more comments about log-age option * Remove unused variable * Fix typo in comment Co-authored-by: Kian Paimani <[email protected]>
-
- Jul 02, 2020
-
-
pscott authored
* Update SubstrateCli to return String * Add default implementation for executable_name() * Use display instead of PathBuf * Get file_name in default impl of executable_name * Remove String::from and use .into() * Use default impl for executable_name() * Use .as_str() and remove useless .to_string() * Update only sp-io when running companion build * Remove unneeded update of sp-io in CI Co-authored-by: Cecile Tonglet <[email protected]>
-
Cecile Tonglet authored
* Initial commit Forked at: 4919c808 Parent branch: origin/master * Drop the tokio runtime before the task_manager The tokio runtime must be dropped before the task_manager. Otherwise the objects the task_manager keep alive are dropped before the tasks are finished.
-
Ashley authored
* :) * Slight tidy * Remove ServiceBuilderCommand * Remove whitespace * Keep task manager alive for check_block/import_blocks * Pass task_manager to run_until_exit * Make task_manager in run_until_exit and make subcommands async * Change the async_run fn to return a future and task manager * async_run should take a result fn * Apply suggestions from code review Co-authored-by: Bastian Köcher <[email protected]> * Fix spaces in export_raw_state Co-authored-by: Bastian Köcher <[email protected]>
-
- Jul 01, 2020
-
-
cheme authored
* Restrict `Protected` to some heap types. * Comment abut Protected usage. * Remove Protected from crypto, use secrecy crate for existing uses. * use a parse function * fix error convert * Rename and move secretY string function. * std result
-
- Jun 30, 2020
-
-
Ashley authored
* WIP * Making progress * Almost ready * Get service tests compiling * Fix node screenshot * Line widths * Fix node cli tests * Fix node cli warning * ChainComponents -> ServiceComponents, fix tests * make spawn_handle public * Remove spawnnamed impl for taskmanager * Move the keep alive stuff to the task manager * Move the telemetry, base path, rpc keep_alive to the service builder * Make the task manager keep alive an internal detail * Rewrite the browser start_client future * Remove run_node etc * Revert my personal changes to browser-demo/build.sh * use |config| * Add a runtime_version function to SubstrateCli * Reexport role and runtime version from sc cli * Update Cargo.lock * runtime_version -> native_runtime_version * Pass chain spec to native_runtime_version for polkadot * Fix line widths * Traitify ServiceComponents Client
-
- Jun 26, 2020
-
-
Pierre Krieger authored
* Increase the limit for the maximum size of the telemetry name * Fix test
-
Pierre Krieger authored
* Fix an extra semi-colon yielding a wrong error * Update client/cli/src/commands/run_cmd.rs Co-authored-by: Bastian Köcher <[email protected]>
-
- Jun 23, 2020
-
-
Ashley authored
* Fix browser informant * Fix documentation * Add an informant_output_format function to the cli config * Wrap informant output format in an option * Revert batch verifier * Remove wasm-timer from primitives io cargo lock * Drop informant_output_format function * derive debug for output format
-
Cecile Tonglet authored
* Initial commit Forked at: d735e4d0 No parent branch. * Make sc_service::Configuration derive Debug * Replace task_executor fn's input by proper TaskExecutor type (cleaner) * impl From<Fn> for TaskExecutor * Update client/cli/src/runner.rs * Add some doc, examples and tests * Replace Deref by fn spawn as suggested Co-authored-by: Bastian Köcher <[email protected]>
-
- Jun 18, 2020
-
-
Pierre Krieger authored
-
- Jun 16, 2020
-
-
Demi Obenour authored
This is useful for both security and performance reasons. IPC is faster than TCP, and it is subject to OS access controls.
-
- Jun 12, 2020
-
-
André Silva authored
* client: use appropriate ExecutionContext for sync/import * client: remove dead code * client: ExecutionContext: distinguish between own and foreign imports * client: fix cli parameter doc * Revert "client: ExecutionContext: distinguish between own and foreign imports" This reverts commit 0fac1152. * primitives: add docs for ExecutionContext * cli: execution strategy docs * cli: use different execution context for importing block on validator * cli: remove defaults from execution context flags
-
- Jun 10, 2020
-
-
Cecile Tonglet authored
Add a feature to create automatically a random temporary directory for base path & remove `Clone` (#6221) * Initial commit Forked at: 342caad3 Parent branch: origin/master * Add a feature to create automatically a temporary directory for base path * doc fix and todos * use parking_lot instead * use refcell instead since we stay in the main thread * remove Clone derives * add test * solving dependency issue * clarifying doc * conflict argument with base-path * WIP Forked at: 342caad3 Parent branch: origin/master * revert dep deletion * fixing test and making base_path optional * hold basepath while the service is running * fixes * Update client/cli/src/params/shared_params.rs Co-authored-by: Bastian Köcher <[email protected]> * Update client/service/Cargo.toml Co-authored-by: Bastian Köcher <[email protected]> * Update client/cli/src/commands/mod.rs Co-authored-by: Bastian Köcher <[email protected]> * Update client/service/src/config.rs Co-authored-by: Bastian Köcher <[email protected]> * WIP Forked at: 342caad3 Parent branch: origin/master * improve doc Co-authored-by: Bastian Köcher <[email protected]>
-
- Jun 09, 2020
-
-
Cecile Tonglet authored
* Initial commit Forked at: 49b15615 Parent branch: origin/master * Add a Service Configuration's field + adapt informant + provide means to CLI * CLEANUP Forked at: 49b15615 Parent branch: origin/master * fix tests * fixed bad path to object * Change OutputFormat enum to struct * Add informant_prefix to builder and service * Revert "Change OutputFormat enum to struct" This reverts commit cd86c583. * Revert "fix tests" This reverts commit a3c306eb. * Revert "Add a Service Configuration's field + adapt informant + provide means to CLI" This reverts commit 9c2e7267. * Implementation using the ServiceBuilder * reduce line length * fix line width again * WIP Forked at: 49b15615 Parent branch: origin/master * WIP Forked at: 49b15615 Parent branch: origin/master * WIP Forked at: 49b15615 Parent branch: origin/master * use struct instead of enum * WIP Forked at: 49b15615 Parent branch: origin/master * Update client/service/src/lib.rs Co-authored-by: Bastian Köcher <[email protected]> * improve doc * Update client/service/src/builder.rs Co-authored-by: Bastian Köcher <[email protected]> * Update client/service/src/builder.rs Co-authored-by: Bastian Köcher <[email protected]> * change code * Update client/informant/src/lib.rs Co-authored-by: Bastian Köcher <[email protected]> * enable_color * reorg log * remove macro * Removed builder for informant prefix * fix doc * Update client/informant/src/lib.rs Co-authored-by: Bastian Köcher <[email protected]> * Update client/informant/src/lib.rs Co-authored-by: Bastian Köcher <[email protected]> * Update client/informant/src/lib.rs Co-authored-by: Bastian Köcher <[email protected]> * Update client/informant/src/lib.rs Co-authored-by: Bastian Köcher <[email protected]> * Update client/service/src/builder.rs Co-authored-by: Bastian Köcher <[email protected]> * Update client/service/src/builder.rs Co-authored-by: Bastian Köcher <[email protected]> * Update client/service/src/builder.rs Co-authored-by: Bastian Köcher <[email protected]> Co-authored-by: Bastian Köcher <[email protected]>
-
- Jun 08, 2020
-
-
Benjamin Kampmann authored
-
- Jun 03, 2020
-
-
Cecile Tonglet authored
* Initial commit Forked at: 2743ed4b Parent branch: origin/master * Add run_full_node, run_light_node and print_node_infos to the API * Update runner.rs
-
Nikolay Volf authored
-
- Jun 01, 2020
-
-
Dan Forbes authored
-
- May 26, 2020
-
-
Bastian Köcher authored
If we are running `--dev` chain, we should forbid the `--chain` argument. The `--dev` chain is always special by only having one authority etc and some other chain spec is probably not setup for this correctly. In the end `--dev` is just a shortcut for `--validator --alice`.
-
- May 25, 2020
-
-
Arkadiy Paronyan authored
* Use directories instead of app_dirs * Use local data dir
-
- May 22, 2020
-
-
pscott authored
* Add BlockStream Enum and utility fn * WIP: Modify import closure to work with BlockStream * Fix trait bounds * Working prototype * Revamp block importing * Add export_import_flow tests * Add comments and clean code * Add more comments in the import fn * Add link code to import function * Add condition when returning Ready(Ok(()) to make sure we've imported every block * Add check for imported blocks in JSON case * Use rest pattern * Fix compilation error for undeclared variable * Add polling and waker before pending * Print read_block_count instead of count * Simplify binary cli option with structopt * Update test to reflect changes in CLI api * Change Stream to take SignedBlock<B> instead of B * Add comments to BlockStream * Move out logic to smaller functions for clearer code * Remove result over import_blocks return type * Check for error in command output rather than simply checking command exit status * Revamp export/import/revert testing * Fix minor typos and formatting errors Co-authored-by: Bastian Köcher <[email protected]> * Remove unnecessary if condition in terminating condition Co-authored-by: Bastian Köcher <[email protected]> * Explicit error instead of returning it as a string Co-authored-by: Bastian Köcher <[email protected]> * Pass BlockStream to log_importing_status_updates and simplify matching arms for block stream * Use .contains() instead of regex match * Line break in match block; return future::ready instead of poll_fn * Update Cargo.lock * Add check so that queue doesn't grow too big * Use Iterator instead of Stream * Remove allow dead_code * Remove outdated comments Co-authored-by: Bastian Köcher <[email protected]> * Return Errors instead of logging them * Simplify match arms Co-authored-by: Bastian Köcher <[email protected]> * Remove check before terminating block import * Apply suggestions from code review * Check that queue is not full BEFORE calling * Revert "Remove check before terminating block import" This reverts commit 377823c0 . * Improve unit tests to make sure we actually import blocks * Remove Unpin implementation for BlockIter * Add prototype of enum for ImportStates * Add working prototype for StateMachine * Add comments for clearer code * Add sleep before calling Waker when waiting for import queue * Add Speedometer * add dbg!(&log) for test debugging * Fix lines with more than 100 cols * Fix regex capture for test * Update regexes to take to capture the whole number * Rename Cmd to Command Co-authored-by: Gavin Wood <[email protected]> * Actually rename Cmd to Command * Apply suggestions from code review Co-authored-by: Gavin Wood <[email protected]> * Fix compilation errors for tests * Fix compilation errors from code review suggestion * Update bin/node/cli/tests/export_import_flow.rs Co-authored-by: Bastian Köcher <[email protected]> Co-authored-by: Gavin Wood <[email protected]> Co-authored-by: Benjamin Kampmann <[email protected]>
-
- May 21, 2020
-
-
clearloop authored
-
Arkadiy Paronyan authored
* Handle piping error for commands that output to stdout * Apply suggestions from code review Co-authored-by: Bastian Köcher <[email protected]>
-
- May 20, 2020
-
-
Pierre Krieger authored
-
- May 18, 2020
-
-
Pierre Krieger authored
* Upgrade to libp2p v0.19 * Listen on IPv6 by default * Increase channels sizes * Use spec-compliant noise protocol * Show legacy PeerId * Switch order of Noise protocols * Switch to crates.io version * Fix subkey's version * Fix line width and Wasm build * I think Wasm is fixed for real this time
-
Nikolay Volf authored
-
- May 15, 2020
-
-
Benjamin Kampmann authored
-
- May 14, 2020
-
-
Pierre Krieger authored
-
- May 13, 2020
-
-
Bastian Köcher authored
Instead of resetting `SIGPIPE` to the system default handler, we now handle a clap error manually and ignore any error when writing to `stdout`/`stderr`. In this way, the node does not silently stops when it encounters a `SIGPIPE` in normal mode and we still support piping of the cli output.
-
- May 12, 2020
-
-
Pierre Krieger authored
* Spawn the network worker with spawn_blocking * Some comment adjustments * Fix shutdown not working
-
Pierre Krieger authored
* Allow passing multiple --log CLI options * Comment typo
-
- May 07, 2020
-
-
Bastian Köcher authored
-
- May 06, 2020
-
-
Igor Matuszewski authored
* client: Replace `unsafe_rpc_expose` with an `RpcMethods` enum which can be either Default, Safe or Unsafe. The idea is to have the following: | | --rpc-external=false | --rpc-external=true | |--------------------- |------------------- |----------------- | | --rpc-methods=Default | | unsafe calls denied | | --rpc-methods=Safe | unsafe calls denied | unsafe calls denied | | --rpc-methods=Unsafe | | | Since the previous `unsafe-rpc-expose` option was confusing. * client: Only warn against exposing externally unsafe RPC method set * Apply suggestions from code review Co-Authored-By: Cecile Tonglet <[email protected]> * cli: Rephrase doc comment for rpc_methods config * Improve debuggability of build_spec_works ...by printing to stderr the stderr of the command. This is normally suppressed for succesful tests but not for failing ones - if that's the case then it's useful to see the test failure reason inline rather than having to execute the command separately ourselves. * Rename RpcMethods::{Default => Auto} variant * Update bin/node/cli/tests/build_spec_works.rs Co-authored-by: Benjamin Kampmann <[email protected]> Co-authored-by: Cecile Tonglet <[email protected]> Co-authored-by: Bastian Köcher <[email protected]>
-
- Apr 30, 2020
-
-
Bastian Köcher authored
* Export state cli * More work * Fix tests * Make it work * Fix compilation * Apply suggestions from code review
-
Arkadiy Paronyan authored
* purge-chain accepts --db option * print DB info on startup * Small refactoring * Added back &self * Add DatabaseParams for PurgeChain, ImportParams and ExportBlocks * Don't force default value * Remove unused fields * Update client/cli/src/commands/export_blocks_cmd.rs * Fix stuff Co-authored-by: Cecile Tonglet <[email protected]> Co-authored-by: Bastian Köcher <[email protected]>
-
- Apr 29, 2020
-
-
Saqib Rokadia authored
* Adding optional public addresses for use in network configurations to allow for proxies in front of a node. * Apply suggestions from code review Co-Authored-By: Cecile Tonglet <[email protected]> Co-authored-by: Bastian Köcher <[email protected]> Co-authored-by: Cecile Tonglet <[email protected]> Co-authored-by: Pierre Krieger <[email protected]>
-
pscott authored
Co-Authored-By: Pierre Krieger <[email protected]>
-
- Apr 28, 2020
-
-
Web3 Philosopher authored
* Drop client from sc-network and sc-client-db, move LongestChain to sc-client-api * move leaves, cht, in_mem to sc-client-api, drop client from sc-finality-grandpa * drop sc-service from sc-rpc * drop sc-service from sc-consensus-aura * drop sc-client from manual-seal and babe * drop sc-client from utils/frame/rpc/system and utils/frame/benchmarking-cli * drop sc-client from bin/node and bin/node-template * drop sc-client * fix tests * remove check -p sc-client from gitlab.yml * fix warnings * fixes ui test * fix light client tests * adds associated Client type to AbstractService * adds UsageProvider to Client * fixed ui test, again * tried and failed to get node-cli to compile for wasm * thanks to tomaka for helping me get node-cli to compile for wasmm * ui test pls pas
🙏🏾 * all tests passing 🪄 * no_run documentation code * rm -f documentation code * ClientProvider * fix mega trait * move LongestChain to sc-consensus, use adds minimal bounds to AbstractService::Client * adds license to sc-consensus Co-authored-by: Benjamin Kampmann <[email protected]> -
Cecile Tonglet authored
* Initial commit Forked at: c13ad416 Parent branch: origin/master * Fix remaining issues with unsafe_pruning * Revert "Fix remaining issues with unsafe_pruning" This reverts commit 9c42c2f9. * Just remove is_dev
-