Skip to content
  1. Sep 03, 2020
  2. Sep 02, 2020
    • Pierre Krieger's avatar
      Stop sending messages on legacy substream altogether (#6975) · 34980ec8
      Pierre Krieger authored
      
      
      * Stop sending messages on legacy substream altogether
      
      * Ensure that handshake is sent back even in case of back-pressure
      
      * Update client/network/src/protocol/generic_proto/handler/group.rs
      
      Co-authored-by: default avatarMax Inden <[email protected]>
      
      * Also process OpenRequest and Closed
      
      * Also process OpenRequest and Closed
      
      * Fix bad merge
      
      * God I'm so lost with all these merges
      
      * Immediately return Closed
      
      * Add warning for sending on non-registered protocol
      
      * Register GrandPa protocol in tests
      
      * Update client/network/src/protocol/generic_proto/handler/group.rs
      
      Co-authored-by: default avatarMax Inden <[email protected]>
      
      Co-authored-by: default avatarMax Inden <[email protected]>
      34980ec8
    • Max Inden's avatar
      frame/authority-discovery: Have authorities() return both current and next (#6788) · 1d10db31
      Max Inden authored
      * frame/authority-discovery: Have authorities() return both current and next
      
      Authority address lookups on the DHT happen periodically (every 10
      mintues) and are rather slow (~10 seconds).
      
      In order to smooth the transition period between two sessions, have the
      runtime module return both the current as well as the next authority
      set. Thereby the client authority module will:
      
      1. Publish its addresses one session in advance.
      
      2. Prefetch the addresses of authorities of the next session in advance.
      
      * frame/authority-discovery: Deduplicate authority ids
      
      * frame/authority-discovery: Don't dedup on_genesis authorities
      
      * frame/authority-discovery: Remove mut and sort on comparison in tests
      
      * frame/authority-discovery: Use BTreeSet for deduplication
      1d10db31
    • Pierre Krieger's avatar
      Ensure that handshake is sent back even in case of back-pressure (#6979) · 2f9e2577
      Pierre Krieger authored
      
      
      * Ensure that handshake is sent back even in case of back-pressure
      
      * Update client/network/src/protocol/generic_proto/handler/group.rs
      
      Co-authored-by: default avatarMax Inden <[email protected]>
      
      * Also process OpenRequest and Closed
      
      * Fix bad merge
      
      * God I'm so lost with all these merges
      
      * Immediately return Closed
      
      Co-authored-by: default avatarMax Inden <[email protected]>
      2f9e2577
  3. Sep 01, 2020
  4. Aug 31, 2020
  5. Aug 29, 2020
  6. Aug 28, 2020
    • Max Inden's avatar
      client/*: Treat protocol name as str and not [u8] (#6967) · 8fd343e3
      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
      8fd343e3
  7. Aug 27, 2020
  8. Aug 26, 2020
  9. Aug 24, 2020
  10. Aug 23, 2020
  11. Aug 22, 2020
  12. Aug 21, 2020
    • Qinxuan Chen's avatar
      Remove duplicated dependencies (#6930) · 8ae16955
      Qinxuan Chen authored
      
      
      Signed-off-by: default avatarkoushiro <[email protected]>
      8ae16955
    • Max Inden's avatar
      *: Update to next libp2p version 0.24.0 (#6891) · 69e349bd
      Max Inden authored
      * *: Update to next libp2p version (likely v0.24.0)
      
      * Revert "*: Update to next libp2p version (likely v0.24.0)"
      
      This reverts commit ffe1545aba6c2557a2843579de331f3fc1c60743.
      
      * */Cargo.toml: Update to libp2p v0.24.0
      
      * client/network/src/service: Handle ConnectionClosed returning Option
      
      * Cargo.*: Test kad usize conversion
      
      * Revert "Cargo.*: Test kad usize conversion"
      
      This reverts commit ad317879782f982cb4a4c76029a72b5b97e82bec.
      
      * Cargo.lock: Update to libp2p-kad v0.22.1
      
      * client/cli/Cargo.toml: Update to libp2p 0.24.0
      69e349bd
  13. Aug 20, 2020
    • Pierre Krieger's avatar
      Remove the legacy requests-answering protocols (#6709) · 09662dc8
      Pierre Krieger authored
      Co-authored-by: parity-processbot <>
      09662dc8
    • Pierre Krieger's avatar
      Try un-ignore flaky test (#6923) · 74cf119d
      Pierre Krieger authored
      74cf119d
    • Benjamin Kampmann's avatar
      prepping for releasing rc6 (#6922) · 2416aa79
      Benjamin Kampmann authored
      * Bump version
      
      * update test-utils crates to be ready for publishing
      
      * adding changelog
      
      * Adding automaticly generated READMEs
      
      * fixing versions
      
      * another version mishap
      2416aa79
    • Cecile Tonglet's avatar
      Clean shutdown for subcommands (#6909) · 6f59c95c
      Cecile Tonglet authored
      6f59c95c
    • Web3 Philosopher's avatar
      Merge Subkey into sc-cli (#4954) · 69632724
      Web3 Philosopher authored
      * draft
      
      * revert
      
      * WIP
      
      * all that remains is tests
      
      * update Cargo.lock
      
      * tests WIP
      
      * WIP refactor node-template-runtime and node-runtime
      
      * implments sc_cli::RuntimeAdapter for node_template_runtime::Runtime
      
      * final draft
      
      * fix update_config for subcommands
      
      * proper AccountId decoding
      
      * test-runtime tests
      
      * revert
      
      * move RuntimeAdapter to cli-utils
      
      * use &'static str for TryFrom::<&'a str>::Error for Ss58AddressFormat
      
      * tests
      
      * add frame-system to sc-cli dev-dependencies
      
      * add frame-system to sc-cli dev-dependencies
      
      * fix ui test
      
      * wip
      
      * fixed inspect test
      
      * bump impl version
      
      * bump impl version, fixx spaces remove todos
      
      * pallet-balances-cli, rustc for some reason cannot resolve pallet_balances_cli in node-cli 😩
      
      * wip
      
      * Subcommand::run takes &self
      
      * can't believe i missed that 🤦🏾‍♂️
      
      * bump wasm-bindgen for some reason
      
      * adds key subcommand, rename generate-node-key to generate-node-id
      
      * cargo update and crossed fingers 🤞🏽
      
      
      
      * update ui test
      
      * update more ui tests
      
      * should be all good now
      
      * revert subkey change
      
      * revert subkey change
      
      * adds frame-utilities-cli
      
      * Apply suggestions from code review
      
      Co-authored-by: default avatarBenjamin Kampmann <[email protected]>
      
      * removes frame from sc-cli, fix license
      
      * my editor and ci disagrees on line width
      
      * bump spec version
      
      * turn off default features for parity-scale-codec
      
      * enable full_crypto feature for sp-core in cli-utils
      
      * merge frame-utilities-cli with pallet-balances-cli
      
      * remove full_crypto feature from sp_core in cli-utils
      
      * bump Cargo.lock
      
      * cli-utils -> frame-utils
      
      * rename BlockNumber to GenericNumber, fix spaces
      
      * fix spaces
      
      * construct additional_signed manually
      
      * sign test
      
      * remove unused vars
      
      * implement subkey with frame-utilities-cli and sc_cli
      
      * fix moduleid test
      
      * CI and clion disagree on line widths
      
      * adds associated Params type to SignedExtensionProvider
      
      * Apply suggestions from code review
      
      Co-authored-by: default avatarBenjamin Kampmann <[email protected]>
      
      * move some code around
      
      * removes unneccesary generic params
      
      * moves module_id back to frame_utilities_cli
      
      * Apply suggestions from code review
      
      Co-authored-by: default avatarBenjamin Kampmann <[email protected]>
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      
      * remove print_ext
      
      * remove MaybeDisplay from pallet_balances::Trait::Balance
      
      * a lot of stuff tbh
      
      * adds ExtrasParamsBuilder
      
      * remove tests for ModuleIdCmd
      
      * address comments from PR
      
      * bump Cargo.lock
      
      * manually insert key into keystore
      
      * remove unnecessary SharedParams
      
      * add validation to vanity pattern, remove unused arg
      
      * remove SharedParams from Sign, Vanity, Verify
      
      * remove SharedParams from ModuleIdCmd, remove expect from Verify, new line to Cargo.toml
      
      * remove SharedParams from InsertCmd
      
      * 🤦🏾
      
      ‍♂️
      
      * deleted prometheus.yml
      
      * move a few things around
      
      * fix vanity test
      
      Co-authored-by: default avatarBenjamin Kampmann <[email protected]>
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      Co-authored-by: default avatarBenjamin Kampmann <[email protected]>
      69632724
  14. Aug 19, 2020
  15. Aug 18, 2020
    • Roman Borschel's avatar
      Add support for sourced metrics. (#6895) · 807329dd
      Roman Borschel authored
      
      
      * Add support for sourced metrics.
      
      A sourced metric is a metric that obtains its values
      from an existing source, rather than the values being
      independently recorded. It thus allows collecting
      metrics from existing counters or gauges without
      having to duplicate them in a dedicated prometheus
      counter or gauge (and hence another atomic value).
      
      The first use-case is to feed the bandwidth counters
      from libp2p directly into prometheus.
      
      * Tabs, not spaces.
      
      * Tweak bandwidth counter registration.
      
      * Add debug assertion for variable labels and values.
      
      * Document monotonicity requirement for sourced counters.
      
      * CI
      
      * Update client/network/src/service.rs
      
      Co-authored-by: default avatarMax Inden <[email protected]>
      
      Co-authored-by: default avatarMax Inden <[email protected]>
      807329dd
  16. Aug 17, 2020
  17. Aug 15, 2020
  18. Aug 14, 2020
    • Max Inden's avatar
      client/authority-discovery: Revert query interval change (#6897) · 6611019e
      Max Inden authored
      Revert the accidental query interval change from every one minute back
      to every 10 minutes.
      6611019e
    • Roman Borschel's avatar
      Update to libp2p-0.23. (#6870) · 327e0294
      Roman Borschel authored
      * Update to libp2p-0.23.
      
      Thereby incorporate bandwidth measurement along the
      lines previously done by libp2p itself.
      
      * Tweak dependencies for wasm32 compilation.
      
      For wasm32 we need to enable unstable features to
      make `task::Builder::local` available.
      
      * Simplify dependencies.
      
      * Simplify.
      
      Leave the calculation of bytes sent/received per second
      to the outer layers of the code, subject to their own
      individual update intervals.
      
      * Cleanup
      
      * Re-add lost dev dependency.
      
      * Avoid division by zero.
      
      * Remove redundant metric.
      
      * Enable sending of noise legacy handshakes.
      
      * Add comment about monotonic gauge.
      
      * CI
      327e0294
  19. Aug 13, 2020