1. 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
  2. Oct 12, 2019
  3. Oct 09, 2019
  4. 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"...
      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
  5. Sep 20, 2019
  6. Aug 11, 2019
  7. 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
  8. Jul 11, 2019
  9. Jun 12, 2019
  10. 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
  11. 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
  12. May 10, 2019
  13. 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
  14. 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
  15. Mar 18, 2019
  16. Mar 12, 2019
  17. 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
  18. Feb 08, 2019
  19. Feb 04, 2019
  20. 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
  21. Jan 23, 2019
  22. Dec 17, 2018
  23. 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
  24. Nov 13, 2018
  25. Oct 04, 2018
  26. Sep 27, 2018
  27. Sep 13, 2018
  28. 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
  29. Aug 20, 2018
  30. 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
  31. Aug 08, 2018
  32. Jul 29, 2018
  33. 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
  34. 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
  35. Jul 06, 2018
    • asynchronous rob's avatar
      Minimal parachains part 2: Parachain statement and data routing (#173) · 6f7f8bf9
      asynchronous rob authored
      * dynamic inclusion threshold calculator
      
      * collators interface
      
      * collation helpers
      
      * initial proposal-creation future
      
      * create proposer when asked to propose
      
      * remove local_availability duty
      
      * statement table tracks includable parachain count
      
      * beginnings of timing future
      
      * finish proposal logic
      
      * remove stray println
      
      * extract shared table to separate module
      
      * change ordering
      
      * includability tracking
      
      * fix doc
      
      * initial changes to parachains module
      
      * initialise dummy block before API calls
      
      * give polkadot control over round proposer based on random seed
      
      * propose only after enough candidates
      
      * flesh out parachains module a bit more
      
      * set_heads
      
      * actually introduce set_heads to runtime
      
      * update block_builder to accept parachains
      
      * split block validity errors from real errors in evaluation
      
      * update WASM runtimes
      
      * polkadot-api methods for parachains additions
      
      * delay evaluation until candidates are ready
      
      * comments
      
      * fix dynamic inclusion with zero initial
      
      * test for includability tracker
      
      * wasm validation of parachain candidates
      
      * move primitives to primitives crate
      
      * remove runtime-std dependency from codec
      
      * adjust doc
      
      * polkadot-parachain-primitives
      
      * kill legacy polkadot-validator crate
      
      * basic-add test chain
      
      * test for basic_add parachain
      
      * move to test-chains dir
      
      * use wasm-build
      
      * new wasm directory layout
      
      * reorganize a bit more
      
      * Fix for rh-minimal-parachain (#141)
      
      * Remove extern "C"
      
      We already encountered such behavior (bug?) in pwasm-std, I believe.
      
      * Fix `panic_fmt` signature by adding `_col`
      
      Wrong `panic_fmt` signature can inhibit some optimizations in LTO mode.
      
      * Add linker flags and use wasm-gc in build script
      
      Pass --import-memory to LLD to emit wasm binary with imported memory.
      
      Also use wasm-gc instead of wasm-build.
      
      * Fix effective_max.
      
      I'm not sure why it was the way it was actually.
      
      * Recompile wasm.
      
      * Fix indent
      
      * more basic_add tests
      
      * validate parachain WASM
      
      * produce statements on receiving statements
      
      * tests for reactive statement production
      
      * fix build
      
      * add OOM lang item to runtime-io
      
      * use dynamic_inclusion when evaluating as well
      
      * fix update_includable_count
      
      * remove dead code
      
      * grumbles
      
      * actually defer round_proposer logic
      
      * update wasm
      
      * address a few more grumbles
      
      * schedule collation work as soon as BFT is started
      
      * impl future in collator
      
      * fix comment
      
      * governance proposals for adding and removing parachains
      
      * bump protocol version
      
      * tear out polkadot-specific pieces of substrate-network
      
      * extract out polkadot-specific stuff from substrate-network
      
      * begin polkadot network subsystem
      
      * grumbles
      
      * update WASM checkins
      
      * parse status from polkadot peer
      
      * allow invoke of network specialization
      
      * begin statement router implementation
      
      * remove dependency on tokio-timer
      
      * fix sanity check and have proposer factory create communication streams
      
      * pull out statement routing from consensus library
      
      * fix comments
      
      * adjust typedefs
      
      * extract consensus_gossip out of main network protocol handler
      
      * port substrate-bft to new tokio
      
      * port polkadot-consensus to new tokio
      
      * fix typo
      
      * start message processing task
      
      * initial consensus network implementation
      
      * remove known tracking from statement-table crate
      
      * extract router into separate module
      
      * defer statements until later
      
      * double signature is invalid
      
      * propagating statements
      
      * grumbles
      
      * request block data
      
      * fix compilation
      
      * embed new consensus network into service
      
      * port demo CLI to tokio
      
      * all test crates compile
      
      * some tests for fetching block data
      
      * whitespace
      
      * adjusting some tokio stuff
      
      * update exit-future
      
      * remove overly noisy warning
      
      * clean up collation work a bit
      
      * address review grumbles
      
      * fix lock order in protocol handler
      
      * rebuild wasm artifacts
      
      * tag AuthorityId::from_slice for std only
      
      * address formatting grumbles
      
      * rename event_loop to executor
      
      * some more docs for polkadot-network crate
      6f7f8bf9
  36. Jul 03, 2018
    • Arkadiy Paronyan's avatar
      Serialisable genesis config (#229) · 106c1126
      Arkadiy Paronyan authored
      * Genesis serialization
      
      * Custom type for AuthorityId
      
      * Merge w master
      
      * Fixed a few minor issues
      
      * Fixed unmerged file
      
      * Renamed tag
      
      * Deferred genesis loading
      
      * Upated wasm runtime
      
      * Minor issues
      106c1126
  37. Jun 25, 2018