Skip to content
  1. Apr 04, 2020
    • Benjamin Kampmann's avatar
      Additional Metrics collected and exposed via prometheus (#5414) · 8991aab9
      Benjamin Kampmann authored
      
      
      This PR refactors the metrics measuring and Prometheus exposing entity in sc-service into its own submodule and extends the parameters it exposes by:
      
      - system load average (over one, five and 15min)
      - the TCP connection state of the process (lsof), refs #5304
      - number of tokio threads
      - number of known forks
      - counter for items in each unbounded queue (with internal unbounded channels)
      - number of file descriptors opened by this process (*nix only at this point)
      - number of system threads (*nix only at this point)
      
      refs #4679
      
      Co-authored-by: default avatarMax Inden <[email protected]>
      Co-authored-by: default avatarAshley <[email protected]>
      8991aab9
  2. Apr 03, 2020
  3. Apr 02, 2020
  4. Apr 01, 2020
  5. Mar 31, 2020
    • Nikolay Volf's avatar
      remove ws feature from json client (#5478) · d477017f
      Nikolay Volf authored
      d477017f
    • Max Inden's avatar
      client/finality-grandpa: Instrument until-imported queue (#5438) · 95c4e64a
      Max Inden authored
      
      
      * client/finality-grandpa: Instrument until-imported queue
      
      The `UntilImported` queue takes as input finality grandpa messages that
      depend on blocks that are not yet imported and holds them back until
      those blocks are imported.
      
      This commit adds a basic metric, the amount of messages waiting in the
      queue, to the module. For now this metric is only available for the
      global `UntilImported` queue awaiting blocks for commit and catch-up
      messages.
      
      * client/finality-grandpa/src/until_imported: Update metric help text
      
      Co-Authored-By: default avatarAshley <[email protected]>
      
      Co-authored-by: default avatarAshley <[email protected]>
      95c4e64a
    • Pierre Krieger's avatar
      Increase limit on light client response size (#5461) · dca30b25
      Pierre Krieger authored
      * Increase limit on light client response size
      
      * Address review
      dca30b25
    • Bastian Köcher's avatar
      Implements mocking of runtime apis (#5448) · ea5ea420
      Bastian Köcher authored
      
      
      * Implements mocking of runtime apis
      
      This pr adds support for easily mock runtime api implementations for
      tests by using the `mock_impl_runtime_apis!` macro. The syntax is
      similar to `impl_runtime_apis!`. The mocked implementation automatically
      implements `ApiExt`, `ApiErrorExt` and `Core` as these are required by
      the runtime api traits, but not required in tests or only a subset of them.
      
      * Fix warnings
      
      * Update primitives/api/proc-macro/src/utils.rs
      
      Co-Authored-By: default avatarNikolay Volf <[email protected]>
      
      * Review feedback
      
      Co-authored-by: default avatarNikolay Volf <[email protected]>
      ea5ea420
    • Nikolay Volf's avatar
      And one more fix to flaky tests (#5467) · a691281f
      Nikolay Volf authored
      * imporoved intervallier version
      
      * remove extra event
      
      * use version 0.3.1
      
      * fix warning
      a691281f
    • Cecile Tonglet's avatar
      Allow changing the behavior for imported blocks (#5236) · fa71ce9c
      Cecile Tonglet authored
      * Added option to disable default block announce
      
      * Added on_block_imported on NetworkService
      
      * Revert "Added on_block_imported on NetworkService"
      
      This reverts commit ba360cad.
      
      * Do not announce block if set to not announce block
      
      * Revert fix
      
      * Moving default announce block to NetworkConfig
      
      * WIP
      
      Forked at: 41bb2193
      Parent branch: origin/master
      
      * WIP
      
      Forked at: 41bb2193
      Parent branch: origin/master
      
      * Removing boolean in favor of explicit call
      
      * Fixing tests
      
      * WIP
      
      Forked at: 41bb2193
      Parent branch: origin/master
      
      * WIP
      
      Forked at: 41bb2193
      Parent branch: origin/master
      
      * increase spec_version
      
      * increase spec_version
      
      * Fixed test
      
      * Fixing test
      
      * Renamed should_announce_imported_blocks to announce_imported_blocks
      
      * Updated assert_cmd
      fa71ce9c
  6. Mar 30, 2020
    • Stanislav Tkach's avatar
    • Max Inden's avatar
      src/service/src/builder: Fix memory metric exposed in bytes not KiB (#5459) · b0f833ee
      Max Inden authored
      The library `sysinfo` exposes process memory as kibibytes and not bytes,
      thus the value needs to be multiplied by 1024 to comply with the metric
      name and the Prometheus base units [1].
      
      [1] https://prometheus.io/docs/practices/naming/#base-units
      b0f833ee
    • Pierre Krieger's avatar
      Fix tried to send handshake twice (#5413) · d21e3246
      Pierre Krieger authored
      * Fix tried to send handshake twice
      
      * Fix wrong boolean
      
      * Change to debug
      d21e3246
    • Rakan Alhneiti's avatar
      Introduce `sign_with` method in keystore (#4925) · 7e7d3e0f
      Rakan Alhneiti authored
      
      
      * Add KEY_KIND_ID to the public trait
      
      This change is being introduced for the purpose of identifying a public
      key with it's identifier and algorithm "kind".
      
      * Use `sign_with` as implemented in BareCryptoStore
      
      * Implement `sign_with` in sc_keystore
      
      * Fix inconsistencies, use *_KIND_ID in sp_core testing
      
      * Rename KeyKindId to CryptoTypeId
      
      * Remove pair-returning functions from BareCryptoStore trait
      
      * Define CryptoTypeId in app-crypto macros
      
      * Add functions to get keys supported by keystore
      
      * Fix sign_with signature to include CryptoTypePublicPair
      
      * Add `sign_with_any` and `sign_with_all`
      
      * Use keystore.sign_with in auth_discovery
      
      * Rename get_supported_keys -> supported_keys
      
      * Added headers to function docstrings
      
      * Use chain instead of extending a temp vector
      
      * Fixed some code formatting
      
      * Restrict size of CryptoTypeId
      
      This is to be able to use Encode/Decode derives and the overcome having
      the size being unknown at compile-time.
      
      * Implement sign_with in the trait itself
      
      * Remove whitespace
      
      * Use key_type also as a CryptoTypeId in app_crypto macros
      
      * Rename `get_keys` to `keys` in BareCryptoStore
      
      * Remove usage of key_pair funcs in tests
      
      * Adjust docstring for *_CYPTO_ID constants
      
      * Fix failures
      
      * Simplify mapping on keys
      
      * Remove one let
      
      * Fixed typo
      
      * PR feedback
      
      * remove whitespace
      
      * Zip keys and signatures
      
      * Use into_iter & remove cloned
      
      * Pass index to MissingSignature
      
      * Use typed errors instead of strings for BareCryptoStore
      
      * Implement Debug for trait error
      
      * Use hashsets for better performance for supported_keys
      
      * Make sure keys are inserted into the keystore
      
      * Make sign_with_all return type consistent with `sign_with`
      
      * Rename Error to BareCryptoStoreError
      
      * Rename CRYPT_TYPE_ID -> CRYPTO_ID
      
      * Remove unnecessary CRYPTO_ID declaration in Public trait
      
      * Convert pub key to CryptoTypePublicPair
      
      * Fix use
      
      * Fix code style
      
      * Implement From on CryptoTypePublicPair in app_crypto macros
      
      * Change CryptoTypePublicPair to a struct
      
      * Implement Display on CryptoTypePublicPair
      
      * Pass CryptoTypePublicPair to MissingSignature error
      
      * Adjust docs according to function signature
      
      * Unify keys implementation
      
      * Fix RPC author tests
      
      * Fix stackoverflow
      
      * Tabify spaces
      
      * Pass KeyTypeId to error for easier debugging
      
      * Fix asserts
      
      * Use ToHex to format public key
      
      * Use constants from sp_core
      
      * Rename testing KeyTypeId constants
      
      * Please compiler
      
      * Restore KeyTypeId names
      
      apparently, they're not only used in tests
      
      * Use BareCryptoStoreError instead of String
      
      * Document return value
      
      * Fix borrow check
      
      * Convert to hashset internally
      
      * WIP - iter_keys
      
      * Return raw_public_keys
      
      * Address PR feedback
      
      * Address PR Feedback
      
      * Fix hexdisplay import error
      
      * Update primitives/core/src/traits.rs
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      7e7d3e0f
    • Pierre Krieger's avatar
      Make transactions and block announces use notifications substre… (#5360) · 4b65f176
      Pierre Krieger authored
      * Make transactions and block announces use notifications
      
      * Add documentation
      4b65f176
    • pscott's avatar
      Build for only one target for docs.rs (#5427) · 31352af1
      pscott authored
      * Add docs.rs metadata to all cargo.toml files
      
      * Remove docs.rs metada in substrate's cargo.toml
      31352af1
  7. Mar 29, 2020
  8. Mar 28, 2020
  9. Mar 27, 2020
  10. Mar 26, 2020
  11. Mar 25, 2020