1. Aug 28, 2020
    • Max Inden's avatar
      client/*: Treat protocol name as str and not [u8] (#6967) · beb74f49
      Max Inden authored
      * client/*: Treat protocol name as str and not [u8]
      
      Notification protocol names are in practice always valid utf8 strings.
      Instead of treating them as such in the type system, thus far they were
      casted to a [u8] at creation time.
      
      With this commit protocol names are instead treated as valid utf8
      strings throughout the codebase and passed as `Cow<'static, str>`
      instead of `Cow<'static, [u8]>`. Among other things this eliminates the
      need for string casting when logging.
      
      * client/network: Don't allocate when protocol name is borrowed
      beb74f49
  2. Jul 29, 2020
  3. Jul 21, 2020
  4. Jul 15, 2020
  5. Jul 14, 2020
  6. Jul 08, 2020
  7. Jun 11, 2020
    • Roman Borschel's avatar
      Find the alive incoming entry on disconnect. (#6320) · 164fb3b6
      Roman Borschel authored
      When a peer in `Incoming` state disconnects, the "alive" entry
      in the `incoming` list for that peer must be updated (set to `false`).
      Currently the entry that is updated may be an earlier entry for the
      same peer that is already no longer alive. This can happen if a
      peer repeatedly connects (incoming) and disconnects between invocations to
      `poll()` of the behaviour.
      164fb3b6
  8. May 26, 2020
  9. May 21, 2020
  10. May 20, 2020
  11. May 18, 2020
  12. May 15, 2020
  13. May 13, 2020
  14. May 12, 2020
  15. Apr 22, 2020
  16. Apr 21, 2020
  17. Apr 09, 2020
  18. Apr 08, 2020
    • Roman Borschel's avatar
      libp2p-next (#5278) · 27d371ee
      Roman Borschel authored
      * Adapt to rust-libp2p#1440.
      
      * Further adapt to libp2p/master.
      
      * Update to libp2p-0.17
      
      * Finishing touches.
      
      * Remove stray TODO.
      
      * Incorporate review feedback.
      
      * Remove unused import.
      27d371ee
  19. Apr 03, 2020
  20. Apr 01, 2020
  21. Mar 30, 2020
  22. Mar 05, 2020
  23. Feb 21, 2020
  24. Feb 17, 2020
  25. Feb 10, 2020
    • Ashley's avatar
      Fix timer panics in the wasm light client (#4561) · ae03ee91
      Ashley authored
      * Make WASM browser thing compile
      
      * Fix
      
      * updated exit-future (github repo)
      
      * Switch to broadcast crate
      
      * Migrate client/cli
      
      * Switch exit-future to modernize branch
      
      * Small changes
      
      * Switch to cargo version and fix fg tests
      
      * fix basic-authorship
      
      * Fix crash on grafana macro
      
      * Fix grafana macro
      
      * Switch node python version
      
      * Disable record_metrics_slice in grafana macro on wasm
      
      * Update client/grafana-data-source/src/lib.rs
      
      * Revert "Update client/grafana-data-source/src/lib.rs"
      
      This reverts commit 888009a8.
      
      * Add wasm support for state machine
      
      * Switch to my own libp2p version
      
      * Revert "Switch to my own libp2p version"
      
      This reverts commit ce613871.
      
      * Revert "Add wasm support for state machine"
      
      This reverts commit de7eaa06
      
      .
      
      * Add sc-browser
      
      * Squash
      
      * remove sc-browser
      
      * Fix keystore on wasm
      
      * stubs for removed functions to make env compatible with old runtimes
      
      * Add test (that doesn't work)
      
      * Fix build scripts
      
      * Revert basic-authorship due to no panics
      
      * Revert cli/informant
      
      * Revert consensus
      
      * revert offchain
      
      * Update utils/browser/Cargo.toml
      
      Co-Authored-By: default avatarBenjamin Kampmann <[email protected]>
      
      * export console functions
      
      * Add new chainspec
      
      * Fix ws in chain spec
      
      * revert chainspec
      
      * Fix chainspec
      
      * Use an Option<PathBuf> in keystore instead of cfg flags
      
      * Remove crud
      
      * Only use wasm-timer for instant and systemtime
      
      * Remove telemetry changes
      
      * Assuming this is ok
      
      * Add a KeystoreConfig
      
      * Add stubs back in
      
      * Update libp2p
      
      * Revert "Add stubs back in"
      
      This reverts commit 4690cf18.
      
      * Remove commented js again
      
      * Bump kvdb-web version
      
      * Fix cli
      
      * Switch branch on futures-timer
      
      * Fix tests
      
      * Remove sc-client test build in check-web-wasm because there isn't a good way to build futures-timer with wasm-bindgen support in the build
      
      * Remove more things ^^
      
      * Switch branch on futures-timer back
      
      * Put DB io stats behind a cfg flag
      
      * Fix things
      
      * Don't timeout transports on wasm
      
      * Update branch of futures-timer and fix bad merge
      
      * Spawn informant
      
      * Fix network test
      
      * Fix delay resets
      
      * Changes
      
      * Fix tests
      
      * use wasm_timer for transaction pool
      
      * Fixes
      
      * Switch futures-timer to crates
      
      * Only diagnose futures on native
      
      * Fix sc-network-test tests
      
      * Select log level in js
      
      * Fix syncing ;^)
      
      * Allow disabling colours in the informant
      
      * Use OutputFormat enum for informant
      
      * MallocSizeOf impl on transaction pool broke stuff because wasm_timer::Instant doesnt impl it so just revert the transaction pool to master
      
      * Update futures-diagnose
      
      * Revert "MallocSizeOf impl on transaction pool broke stuff because wasm_timer::Instant doesnt impl it so just revert the transaction pool to master"
      
      This reverts commit baa4ffc9
      
      .
      
      * Pass whole chain spec in start_client
      
      * Get Instant::now to work in transaction pool again
      
      * Informant dep reordering
      
      Co-authored-by: default avatarPierre Krieger <[email protected]>
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      Co-authored-by: default avatarSvyatoslav Nikolsky <[email protected]>
      Co-authored-by: default avatarBenjamin Kampmann <[email protected]>
      Co-authored-by: default avatarDemi Obenour <[email protected]>
      ae03ee91
  26. Jan 09, 2020
    • Pierre Krieger's avatar
      Update networking code to libp2p 0.14 (#4383) · 1ec08e88
      Pierre Krieger authored
      * Entirely update substrate-telemetry to futures 0.3
      
      * Add a Closed error
      
      * Update to libp2p 0.14
      
      * More work
      
      * More work
      
      * More work
      
      * More work
      
      * Fix warnings
      
      * Remove unwrap()
      
      * Work on tests fixing
      
      * Fix network tests
      
      * Fix external network tests
      
      * Update libp2p and restore Yamux in discovery test
      
      * Ignore DNS if initializatio nfails
      
      * Restore variables ordering
      
      * Forgot browser-utils
      
      * Fix downfall after merge
      
      * Fix tests
      1ec08e88
  27. Jan 05, 2020
  28. Dec 16, 2019
    • Tomasz Drwięga's avatar
      [big refactor] Remove crate aliasing. (#4395) · 40a16efe
      Tomasz Drwięga authored
      * Rename: Phase 1.
      
      * Unify codec.
      
      * Fixing: Phase 2
      
      * Fixing: Phase 3.
      
      * Fixing: Phase 4.
      
      * Fixing: Phase 5.
      
      * Fixing: Phase 6.
      
      * Fixing: Phase 7.
      
      * Fixing: Phase 8. Tests
      
      * Fixing: Phase 9. Tests!!!
      
      * Fixing: Phase 10. Moar tests!
      
      * Finally done!
      
      * More fixes.
      
      * Rename primitives:: to sp_core::
      
      * Apply renames in finality-grandpa.
      
      * Fix benches.
      
      * Fix benches 2.
      
      * Revert node-template.
      
      * Fix frame-system in our modules.
      40a16efe
  29. Dec 05, 2019
  30. Dec 03, 2019
  31. 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 interface moves
      
      * move backend and light to interfaces
      
      * move CallExecutor
      
      * move cli off client
      
      * moving around more interfaces
      
      * re-add consensus crates into the mix
      
      * fix subkey path
      
      * relieve client from executor
      
      * starting to pull out client from grandpa
      
      * move is_decendent_of out of client
      
      * grandpa still depends on client directly
      
      * lemme tests pass
      
      * rename srml->paint
      
      * Make it compile.
      
      * rename interfaces->client-api
      
      * Move keyring to primitives.
      
      * fixup libp2p dep
      
      * fix broken use
      
      * allow dependency enforcement to fail
      
      * move fork-tree
      
      * Moving wasm-builder
      
      * make env
      
      * move build-script-utils
      
      * fixup broken crate depdencies and names
      
      * fix imports for authority discovery
      
      * fix typo
      
      * update cargo.lock
      
      * fixing imports
      
      * Fix paths and add missing crates
      
      * re-add missing crates
      f44873dc
  32. Nov 05, 2019
  33. Aug 09, 2019
  34. Aug 07, 2019
  35. Jul 29, 2019
  36. Jul 24, 2019
    • Roman Borschel's avatar
      libp2p-next (#3076) · c8e2574e
      Roman Borschel authored and Pierre Krieger's avatar Pierre Krieger committed
      * Changes for the next libp2p release:
      
        * Updates to the Kademlia APIs.
        * Updated imports due to the extracted libp2p-swarm crate.
        * ...
      
      Still pending at least the following:
      
        * rust-libp2p/#1189
        * rust-libp2p/#1191
        * rust-libp2p/#1194
      
      * Use Quorum::One.
      
      The previous choice was apparently arbitrary.
      
      * Use libp2p-0.11 from crates.io. Address feedback.
      
      * Correct imports after merge.
      c8e2574e