1. Nov 22, 2019
    • Ashley's avatar
      Upgrade from futures-preview to futures 0.3.1, and remove futures 0.1 where... · aee12ee6
      Ashley authored
      Upgrade from futures-preview to futures 0.3.1, and remove futures 0.1 where currently possible (#4083)
      
      * Migrate node and node-template
      
      * Migrate srml
      
      * Simple changes
      
      * Add async-std for interval
      
      * Fix test-runtime warning
      
      * Small changes
      
      * move futures01 in core/rpc to dev-deps
      
      * Change wasm CI builds
      
      * Switch to async-std 1.0.1
      
      * Remove async-std dep of network
      
      * Add modified lockfile
      
      * Fix node cli browser build
      
      * Remove authority-discovery async-std dep
      
      * Add Send + Sync to interval dyn stream
      aee12ee6
  2. Nov 14, 2019
    • Benjamin Kampmann's avatar
      Reorganising the repository - external renames and moves (#4074) · f44873dc
      Benjamin Kampmann authored
      * Adding first rough ouline of the repository structure
      
      * Remove old CI stuff
      
      * add title
      
      * formatting fixes
      
      * move node-exits job's script to scripts dir
      
      * Move docs into subdir
      
      * move to bin
      
      * move maintainence scripts, configs and helpers into its own dir
      
      * add .local to ignore
      
      * move core->client
      
      * start up 'test' area
      
      * move test client
      
      * move test runtime
      
      * make test move compile
      
      * Add dependencies rule enforcement.
      
      * Fix indexing.
      
      * Update docs to reflect latest changes
      
      * Moving /srml->/paint
      
      * update docs
      
      * move client/sr-* -> primitives/
      
      * clean old readme
      
      * remove old broken code in rhd
      
      * update lock
      
      * Step 1.
      
      * starting to untangle client
      
      * Fix after merge.
      
      * start splitting out client interfaces
      
      * move children and blockchain interfaces
      
      * Move trie and state-machine to primitives.
      
      * Fix WASM builds.
      
      * fixing broken imports
      
      * more interfac...
      f44873dc
  3. Nov 01, 2019
    • Jim Posen's avatar
      Integrate Wasmtime for runtime execution (#3869) · c2975363
      Jim Posen authored
      * executor: Use non wasmi-specific execution in tests.
      
      * executor: Move all runtime execution tests into tests file.
      
      * executor: Use test_case macro to easily execute tests with different
      Wasm execution methods.
      
      * executor: Convert errors to strings with Display, not Debug.
      
      * node-executor: Rewrite benchmarks with criterion.
      
      They were not passing compilation before and criterion seems to be more
      widely used in Substrate.
      
      * executor: Begin implementation of Wasm runtime.
      
      The implementation demonstrates the outline of the execution, but does
      not link against the external host functions.
      
      * executor: Define and implement basic FunctionExecutor.
      
      The SandboxCapabilities::invoke is still left unimplemented.
      
      * executor: Implement host function trampoline generation.
      
      * executor: Instantiate and link runtime module to env module.
      
      * executor: Provide input data during wasmtime execution.
      
      * executor: Implement SandboxCapabilites::invoke for wasmtime executor.
      
      * executor: Integrate and test wasmtime execution method.
      
      * executor: Improve FunctionExecution error messages.
      
      * Scope the unsafe blocks to be smaller.
      
      * Rename TrampolineState to EnvState.
      
      * Let EnvState own its own compiler instead of unsafe lifetime cast.
      
      * Refactor out some common wasmi/wasmtime logic.
      
      * Typos and cosmetic changes.
      
      * More trampoline comments.
      
      * Cargo.lock update.
      
      * cli: CLI option for running Substrate with compiled Wasm execution.
      
      * executor: Switch dependency from fork to official wasmtime repo.
      
      * Quiet down cranelift logs.
      
      * Explicitly catch panics during host calls.
      
      We do this to ensure that panics do not cross language boundaries.
      
      * Additional checks and clarifications in make_trampoline.
      
      * Fixes after merge from master and panic safety for wasmtime
      instantiation.
      c2975363
  4. Oct 31, 2019
    • Pierre Krieger's avatar
      Add the code for compiling node-cli for WASM-browser (#3974) · afc63040
      Pierre Krieger authored
      
      
      * Extract CLI to separate module in node/cli
      
      * Make node/cli compile for WASM
      
      * More work on node/cli browser
      
      * More work on browser node
      
      * More work
      
      * More work
      
      * Purge a bit the CI script
      
      * More clean up
      
      * Remove substrate-finality-grandpa from the CI
      
      Its tests use tokio, which fails to compile.
      
      * Address review
      
      * Add rocksdb feature to the service
      
      * Fix substrate-service WASM CI
      
      * Apply suggestions from code review
      
      Co-Authored-By: default avatarBastian Köcher <[email protected]>
      
      * Don't WASM-compile substrate-service altogether
      afc63040
  5. Oct 12, 2019
  6. Oct 09, 2019
  7. Oct 02, 2019
    • DemiMarie-parity's avatar
      Upgrade dependencies whenever “easy” (#3556) · 0cfe7438
      DemiMarie-parity authored
      * Update all dependencies
      
      * Upgrade dependencies whenever “easy”
      
      “easy” means that there are no major changes required.
      
      * Fix build and bump paste dependency to 0.1.6
      
      * Remove dead code
      
      * Re-add = dependency for futures-preview
      
      * Add missing std features for runtime-io
      
      * Remove git dependencies
      
      as updated versions have been published to crates.io
      
      * try to debug bug
      
      * For sr-io, "std" should imply "no_oom" and "no_panic_handler".
      
      Otherwise, rustc complains (correctly) about duplicate lang items.
      
      * Add missing "runtime-io/std" features
      
      * Fix compilation errors
      
      * Prevent duplicate lang items
      
      Rust does not allow duplicate lang items.  When compiled without the
      `std` feature, `sr-io` defines two lang items.  Therefore, `sr-io`
      compiled without `feature = "std"` must not be linked with `std`.
      
      However, `pwasm-utils` and `wasmi-validation` both bring in `std` unless
      compiled with `default-features = "false"`.  This caused a duplicate
      lang item error.  Building both with `default-features = "false"`
      prevents this error.  When building with `feature = "std"`, they should
      both be built with the `std` feature, so this feature needs to be
      explicitly depended on.
      
      * Bump `impl_version`
      
      * Make tests pass
      
      Three tests used 1 less gas than they had previously.
      
      * Try to un-break build
      
      * Add a Cargo.lock file
      
      * Revert offchain code
      
      * Revert "Revert offchain code"
      
      This reverts commit d216d08c
      
      .
      
      * Don’t try to send a body with a GET request
      
      without adding a Transfer-Encoding or Content-Length header.
      
      This has always been wrong, but hyperium/hyper#1925 hid the bug until
      hyper was upgraded to 0.12.35.
      
      * Change some more GET requests to POST requests
      
      * Fix excess line width and remove an `extern crate`
      
      * Delete commented-out extern crate
      
      Co-Authored-By: default avatarSergei Pepyakin <[email protected]>
      
      * Fix regression in Cargo.toml files
      
      dev-dependencies need `default-features = false`, too.
      
      * Bump parity-wasm dependency
      
      * Bump `futures-preview`
      
      * Apply suggestions from code review
      
      Co-Authored-By: default avatarBastian Köcher <[email protected]>
      
      * Update Cargo.lock files
      
      * Apply suggestions from code review
      
      Co-Authored-By: default avatarBastian Köcher <[email protected]>
      
      * Update core/service/src/chain_ops.rs
      
      Co-Authored-By: default avatarSergei Pepyakin <[email protected]>
      0cfe7438
    • Marcio Diaz's avatar
      Optimize tree route to sync faster (#3665) · d7be2906
      Marcio Diaz authored
      * Introduce HeaderMetadata and use it for tree_route. Add lowest_common_ancestor.
      * Add tests.
      d7be2906
  8. Sep 20, 2019
  9. Aug 11, 2019
  10. Jul 29, 2019
    • Kian Paimani's avatar
      Refactor sr_primitives. (#3214) · 1fcd1286
      Kian Paimani authored
      * refactor sr_primitives.
      
      * Fix try build error.
      
      * Line-width
      
      * Ui test.
      
      * Final fixes.
      
      * Fix build again.
      
      * bring back ui test.
      
      * Fix unsigned import.
      
      * Another ui fix.
      
      * Also refactor substrate-primitives
      
      * Fix benchmarks.
      
      * Fix doc test.
      
      * fix doc tests
      1fcd1286
  11. Jul 11, 2019
  12. Jun 12, 2019
  13. May 24, 2019
    • Tomasz Drwięga's avatar
      Expunge error-chain (feat. tomaka) (#2662) · d713fbc3
      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
      d713fbc3
  14. May 15, 2019
    • 郭光华's avatar
      Add tty password input (#2503) · a11dd6ce
      郭光华 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
      a11dd6ce
  15. May 10, 2019
  16. Apr 01, 2019
    • Gav Wood's avatar
      Bump version to 1.0.0 globally (#2149) · d57202d5
      Gav Wood authored
      * Bump versionb globally
      
      * Rebuild and fix
      
      * Rename fixes
      
      * Rebuild
      
      * Minor fix and code formatting for validator election
      
      * Fix tests
      
      * More test fixes
      
      * Fix several bugs in phragmen elections.
      
      * Rebuild, remove pointless closures
      d57202d5
  17. Mar 19, 2019
    • Roman Borschel's avatar
      libp2p-0.5.0 (#1971) · ec6d07bf
      Roman Borschel authored
      * Update libp2p. Add support for ed25519 node (network) keys.
      
        * Update networking to the changes from https://github.com/libp2p/rust-libp2p/pull/972.
        * Add support for using ed25519 keys for libp2p networking.
        * Add support for reading libp2p secret keys from (external) files.
      
      * Adapt to changes from https://github.com/libp2p/rust-libp2p/pull/992
      
      * More tests.
      
      * Cosmetics
      
      * Deduplicate tests.
      
      * Remove quickcheck from tests that don't use extra random inputs.
      
      * Remove quickcheck.
      
      * Swap new/default impls for NetworkConfiguration.
      
      * Use libp2p-0.5.0 from crates.io.
      
      * Post-rebase update.
      
      * Remove unnecessary wildcard pattern.
      
      * Combine two overlapping tests.
      ec6d07bf
  18. Mar 18, 2019
  19. Mar 12, 2019
  20. Feb 11, 2019
    • Marcio Diaz's avatar
      Adds new execution strategy nativeElseWasm (#1546) · 5f4ebb47
      Marcio Diaz authored
      * fix: adds new execution strategy nativeElseWasm and replace nativeWhenPossible with it
      
      * feat: adds cmd line params for execution strategies
      
      * fix: uses of cmd line execution strategies
      
      * chore: remove white spaces
      
      * chore: remove println
      
      * chore: remove whitespace
      
      * fix: generating functions with context
      
      * feat: add function to generate with_context declarations
      
      * fix: add implementation for with_context function calls
      
      * fix: add execution context to call_api_at function
      
      * fix: making use of context to select strategy for block_builder
      
      * chore: cleaning up
      
      * fix: merging issues
      
      * fix tests
      
      * add wasm files
      
      * chore: small doc for context fields
      
      * chore: delete redundant docs
      
      * fix: use full path for ExecutionContext
      
      * fix: add context functions from inside fold_item_impl
      
      * chore: remove clone
      
      * fix: moving generative function to utils, remove unused imports
      
      * fix: add missing full path for ExecutionContext
      
      * fix: merge issues
      
      * update wasm files
      
      * fix: update to keep up with changes in master
      
      * chore: remove unused functions, clean up
      
      * fix test
      
      * fix grumbles
      
      * fix: add more tests
      
      * fix: some refactorings
      
      * feat: add execution strategy to call
      
      * chore: small improvements
      
      * fix: add message to panic
      
      * fix tests
      5f4ebb47
  21. Feb 08, 2019
  22. Feb 04, 2019
  23. Jan 25, 2019
    • Benjamin Kampmann's avatar
      Update dependencies (#1527) · f17d79fb
      Benjamin Kampmann authored
      * update to latest env_logger
      
      * roundabout dependency update
      
      * Update to latest vengen
      
      * Update rand to 0.6
      
      * Update to latest rng shuffle API
      
      * Roundabout update of dependencies
      
      * Update rustc_hex
      
      * Update wasm
      
      * Fix logging setup in tests
      
      * revert to fix test
      f17d79fb
    • Bastian Köcher's avatar
      Refactor CLI handling (#1368) · 77f5cb7c
      Bastian Köcher authored
      * Rework cli handling
      
      * Update readme
      
      * Adds support for custom subcommands and extra run parameters
      
      * Update readme
      
      * Fixes compilation after master merge
      
      * Make "Run" the default subcommand
      
      Actually its hidden to the outside that is an subcommand.
      
      * Rewrite CLI to work without breaking old CLI behavior
      
      * Some cleanup
      
      * Fix incorrect config setup
      
      * Update README
      
      * Fixes after merge
      
      * Fixes incorrect README
      77f5cb7c
  24. Jan 23, 2019
  25. Dec 17, 2018
  26. Nov 21, 2018
    • asynchronous rob's avatar
      Minimal switch of substrate-node to GRANDPA /Aura (#1128) · 3a8a3925
      asynchronous rob authored
      
      
      * add beginnings of SRML grandpa library
      
      * get srml-grandpa compiling
      
      * tests for srml-grandpa
      
      * add optional session integration to grandpa SRML
      
      * start integration into node runtime
      
      * Allow extracting pending change from header digest
      
      * Make it compile on wasm
      
      * make tests compile again
      
      * Move Authority Key fetching into service, simplify service factory construction
      
      * Generalize Authority Consensus Setup system
      
      * Add Authority Setup Docs
      
      * Allow CLI params to be extensible
      
       - move params to structopts
       - split parsing and default command execution
       - add custom config to node
       - extended parsing of custom config
       - extending params via structop's flatten
      
      * Minor fixes on cli extension params:
       - added docs
       - re-add actual app name, rather than node-name
       - make strategy and subcommand optional
      
      * better cli params
      
      * synchronize GRANDPA and normal node authorities
      
      * Implement grandpa::network for gossip consensus
      
      * run_grandpa in Node
      
      * Fix missed merge error
      
      * Integrate grandpa import queue
      
      * more specific type def
      
      * link up linkhalf and import block
      
      * make grandpa future send
      
      * get compiling
      
      * Fix new params convention and license header
      
      * get it running
      
      * rebuild node runtime WASM
      
      * change logging level
      
      * Update node/cli/src/params.rs
      
      Co-Authored-By: default avatarrphmeier <[email protected]>
      
      * Update node/cli/src/params.rs
      
      Co-Authored-By: default avatarrphmeier <[email protected]>
      
      * Update node/cli/src/lib.rs
      
      Co-Authored-By: default avatarrphmeier <[email protected]>
      
      * Update node/runtime/src/lib.rs
      
      Co-Authored-By: default avatarrphmeier <[email protected]>
      
      * Update node/cli/src/lib.rs
      
      Co-Authored-By: default avatarrphmeier <[email protected]>
      
      * Clean up and Fixme for mutable config
      
      * Move GrandpaService Integration into grandpa, feature gated but on per default
      
      * Fixing grandpa runtime module test
      
      * Update wasm runtime hashes for tests
      
      * GRANDPA: use post-header hash when logging scheduled changes
      
      * add an extra bit of logging to authorities
      
      * fixing missing constrain
      
      * remove old code
      
      * move `NewAuthorities` to an event in srml-grandpa
      
      * fix node-executor tests to use grandpa log
      
      * Remove GossipConsensus from tests, use newly provided sync-feature, fixes tests
      
      * Update to latest wasm runtimes
      
      * address grumbles
      
      * address grumbles
      
      * only derive deserialize when using std
      
      * Clean up use of Deserialize
      3a8a3925
  27. Nov 13, 2018
  28. Oct 04, 2018
  29. Sep 27, 2018
  30. Sep 13, 2018
  31. Sep 12, 2018
    • Gav Wood's avatar
      Phase 1 of repo reorg (#719) · bc276f3c
      Gav Wood authored and Arkadiy Paronyan's avatar Arkadiy Paronyan committed
      * Remove unneeded script
      
      * Rename Substrate Demo -> Substrate
      
      * Rename demo -> node
      
      * Build wasm from last rename.
      
      * Merge ed25519 into substrate-primitives
      
      * Minor tweak
      
      * Rename substrate -> core
      
      * Move substrate-runtime-support to core/runtime/support
      
      * Rename/move substrate-runtime-version
      
      * Move codec up a level
      
      * Rename substrate-codec -> parity-codec
      
      * Move environmental up a level
      
      * Move pwasm-* up to top, ready for removal
      
      * Remove requirement of s-r-support from s-r-primitives
      
      * Move core/runtime/primitives into core/runtime-primitives
      
      * Remove s-r-support dep from s-r-version
      
      * Remove dep of s-r-support from bft
      
      * Remove dep of s-r-support from node/consensus
      
      * Sever all other core deps from s-r-support
      
      * Forgot the no_std directive
      
      * Rename non-SRML modules to sr-* to avoid match clashes
      
      * Move runtime/* to srml/*
      
      * Rename substrate-runtime-* -> srml-*
      
      * Move srml to top-level
      bc276f3c
  32. Aug 20, 2018
  33. Aug 15, 2018
    • Guanqun Lu's avatar
      send memory usage and cpu usage to telemetry (#499) · a63ed69f
      Guanqun Lu authored
      * send memory usage and cpu usage to telemetry
      
      Fixes #443, however, it doesn't send IO usage, as it's not available in
      this crate.
      
      * fixes according to Gav's comments
      
      * fix grumbles, send basictypes in telemetry
      a63ed69f
  34. Aug 08, 2018
  35. Jul 29, 2018
  36. Jul 25, 2018
    • Arkadiy Paronyan's avatar
      Substrate CLI (#423) · f77b3e32
      Arkadiy Paronyan authored
      * Moved chain ops to substrate-service
      
      * moved RPC to susbstrate-service WIP
      
      * Moved RPC to substrate-service
      
      * Version
      
      * Removed redundadnt messages
      
      * substrate CLI
      
      * Removed obsolete files
      
      * Sorted out startup messages
      
      * Pass executable name to CLI
      f77b3e32
  37. Jul 14, 2018
    • Arkadiy Paronyan's avatar
      Split polkadot-service (#310) · 62b28322
      Arkadiy Paronyan authored
      * Substrate service
      
      * Splitting polkadot service
      
      * Specialised components
      
      * Specialised components
      
      * Docs and style
      
      * Docs and style
      
      * Final touches
      
      * Added db key assertion
      62b28322