Skip to content
Snippets Groups Projects
  1. Mar 31, 2020
    • Cecile Tonglet's avatar
      Allow changing the behavior for imported blocks (#5236) · 439887a7
      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 ba360cad96e0cb041d7047af30df2a35eb112449.
      
      * Do not announce block if set to not announce block
      
      * Revert fix
      
      * Moving default announce block to NetworkConfig
      
      * WIP
      
      Forked at: ad90ab7e
      Parent branch: origin/master
      
      * WIP
      
      Forked at: ad90ab7e
      Parent branch: origin/master
      
      * Removing boolean in favor of explicit call
      
      * Fixing tests
      
      * WIP
      
      Forked at: ad90ab7e
      Parent branch: origin/master
      
      * WIP
      
      Forked at: ad90ab7e
      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
      439887a7
    • gabriel klawitter's avatar
      Ci check companion (#5419) · b8eb094c
      gabriel klawitter authored
      * add post-build-test stage
      
      * check status
      
      * fix busybox shell
      
      * renaming for consistency
      b8eb094c
  2. Mar 30, 2020
    • yanganto's avatar
      Show network id/version in subkey (#5457) · 77b9771b
      yanganto authored
      
      * Show network id/version in subkey
      
      - show network id/version when creating
      - show network id/version when inspecting
      
      * Update bin/utils/subkey/src/main.rs
      
      use `unwrap_or_default` for more clean syntax
      
      Co-Authored-By: default avatarBastian Köcher <bkchr@users.noreply.github.com>
      
      Co-authored-by: default avatarBastian Köcher <bkchr@users.noreply.github.com>
      77b9771b
    • Stanislav Tkach's avatar
    • Max Inden's avatar
      src/service/src/builder: Fix memory metric exposed in bytes not KiB (#5459) · c3c8552a
      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
      c3c8552a
    • Nikolay Volf's avatar
      pub instead of remove (#5451) · d82a2bf4
      Nikolay Volf authored
      d82a2bf4
    • Pierre Krieger's avatar
      Fix tried to send handshake twice (#5413) · dbba4f89
      Pierre Krieger authored
      * Fix tried to send handshake twice
      
      * Fix wrong boolean
      
      * Change to debug
      dbba4f89
    • Rakan Alhneiti's avatar
      Introduce `sign_with` method in keystore (#4925) · e17a23e9
      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 <bkchr@users.noreply.github.com>
      e17a23e9
    • Pierre Krieger's avatar
      Make transactions and block announces use notifications substre… (#5360) · 462eaa3f
      Pierre Krieger authored
      * Make transactions and block announces use notifications
      
      * Add documentation
      462eaa3f
    • pscott's avatar
      Build for only one target for docs.rs (#5427) · 408455f8
      pscott authored
      * Add docs.rs metadata to all cargo.toml files
      
      * Remove docs.rs metada in substrate's cargo.toml
      408455f8
  3. Mar 29, 2020
  4. Mar 28, 2020
  5. Mar 27, 2020
  6. Mar 26, 2020
  7. Mar 25, 2020
    • Max Inden's avatar
      client/finality-grandpa/src/until_imported: Refactor BlockGlobalMessage (#5390) · 77446d3b
      Max Inden authored
      
      * client/finality-grandpa/src/until_imported: Refactor BlockGlobalMessage
      
      `BlockGlobalMessage` owns an `inner` which contains (1) a count for the
      amount of outstanding blocks to be waited on and (2) the message itself.
      
      Given that both is already wrapped in an `Arc` there is no need to keep
      track of the outstanding blocks, given that it simply corresponds to the
      amount of strong reference counts on the `Arc` itself.
      
      This commit removes the atomic counter within `inner` and piggy backs on
      the `Arc` reference counter instead.
      
      * client/finality-grandpa/src/until_imported: Remove useless match
      
      * client/finality-grandpa/src/until_imported.rs: Remove unused var
      
      Co-Authored-By: default avatarAndré Silva <andre.beat@gmail.com>
      
      * client/finality-grandpa/src/until_imported: Address comment suggestion
      
      Co-authored-by: default avatarAndré Silva <andre.beat@gmail.com>
      77446d3b
    • Joshy Orndorff's avatar
      Remove package aliases from node template (#5389) · 0505e937
      Joshy Orndorff authored
      * delias outer node template
      
      * dealias pallet template
      
      * Fix mock
      
      * attempt to fix warning
      
      * Revert "attempt to fix warning"
      
      This reverts commit 3d39142b877fb7ae2bd9bd0b31442a00d4c8f0bf.
      
      * Add call to test interface.
      0505e937
    • André Silva's avatar
      primitives: add missing cargo metadata to sp-arithmetic-fuzzer (#5402) · e86fedba
      André Silva authored
      * primitives: add missing cargo metadata to sp-arithmetic-fuzzer
      
      * ci: add sp-arithmetic-fuzzer to unleash skip list
      e86fedba