Skip to content
  1. Jan 03, 2021
    • Bastian Köcher's avatar
      Fix ss58check test when executed with other tests (#7815) · 672a2912
      Bastian Köcher authored
      There was a bug that could make other ss58 tests fail when being
      executed with this one in parallel. This test changes the default ss58
      version and if other tests are run at the time the default version is
      changed, they would fail. To fix this problem, we now run the actual
      test as a new process.
      672a2912
  2. Dec 30, 2020
  3. Dec 28, 2020
    • Bastian Köcher's avatar
      Fix base-path handling in `key insert` (#7775) · 05ae24d9
      Bastian Köcher authored
      This fixes the handling of base-path when using `key insert`. Before
      the base-path wasn't setup correctly, as done when starting a node. This
      resulted in putting the keys into the wrong directory. This pr fixes
      this by creating the correct base-path/config dir for the keystore.
      Besides that it also removes the insert command from `subkey` as it
      doesn't make that much sense. If requested, we could bring it back later.
      05ae24d9
  4. Dec 27, 2020
  5. Dec 23, 2020
  6. Dec 21, 2020
  7. Dec 19, 2020
  8. Dec 18, 2020
    • Bastian Köcher's avatar
      Update common block in sync after importing blocks of a peer, please read UPDATE (#7733) · d3c7a99d
      Bastian Köcher authored
      
      
      * Update common block in sync after importing blocks of a peer
      
      This updates the sync code to update the common block of a peer, after
      we have imported blocks from this peer. This fixes a bug for when we are
      connected to one or more nodes that are doing a full sync as our node.
      Nodes in full sync will not announce new blocks, as we don't send import
      notifications on full sync. The problem as now that we were connected to
      some peer that reported some low number as its best and we tried to sync
      these blocks. But, as we did not update the common block of this peer,
      we would sync these blocks over and over again. Being captured in some
      time warp.
      The solution to this problem is that we increase the common number as we
      import blocks from this peer.
      
      * Test
      
      * Test name..
      
      * Fix test
      
      * Cleanup some code and write some new regression test
      
      * Implement the ancestor search
      
      * Check that the common number is smaller than the last finalized block
      
      * Update client/network/src/protocol/sync.rs
      
      Co-authored-by: default avatarAndré Silva <[email protected]>
      
      * Update client/network/src/protocol/sync.rs
      
      Co-authored-by: default avatarAndré Silva <[email protected]>
      
      * Update client/network/src/protocol/sync.rs
      
      Co-authored-by: default avatarAndré Silva <[email protected]>
      
      * Change the way we build the status messages
      
      * Start some new test...
      
      * Finish test
      
      * Rename test
      
      * Update client/network/src/protocol.rs
      
      Co-authored-by: default avatarAndré Silva <[email protected]>
      
      Co-authored-by: default avatarAndré Silva <[email protected]>
      d3c7a99d
  9. Dec 17, 2020
  10. Dec 15, 2020
  11. Dec 14, 2020
  12. Dec 11, 2020
  13. Dec 10, 2020
  14. Dec 09, 2020
    • Max Inden's avatar
      *: Update to libp2p v0.32.0 (#7696) · 0a2636d2
      Max Inden authored
      * *: Update to libp2p v0.32.0
      
      * Cargo.lock: Update async-tls to 0.10.2
      
      * client/network/request_response: Adjust to new request response events
      
      * client/network/request_response.rs: Clean up silently failing responses
      
      * client/network/discovery: Lazily instantiate mdns
      
      * client/network/discovery: Exclude MdnsWrapper for target_os unknown
      
      * client/network/discovery: Fix indentation
      
      * client/network/request-response: Use LruCache to track pending resp time
      
      * client/network/request_responses: Fix early connection closed error
      
      * client/network/request-response: Replace debug_assert with debug
      
      * client/network/request-response: Fix typo
      
      * client/network/request-response: Don't emit event on send_response fail
      
      * client/network/request-response: Revert waker.wake_by_ref()
      
      * client/network/request-resp: Make duration in InboundRequest optional
      
      * client/network/req-resp: Don't emit two events for busy builder
      
      When a response builder is busy incoming requests are dropped.
      Previously this was reported both via a `ResponseFailure::Busy` and a
      `ReponseFailure::Network(InboundFailure::Omisssion)` event.
      
      With this commit the former is removed, leaving only the latter in
      place.
      0a2636d2
    • Tomasz Drwięga's avatar
      Merkle Mountain Range pallet (#7312) · 02f66e88
      Tomasz Drwięga authored
      
      
      * Add MMR pallet.
      
      * WiP
      
      * Working on testing.
      
      * WiP - test
      
      * Tests passing.
      
      * Add proof generation.
      
      * Generate and verify proofs.
      
      * Allow verification of older proofs.
      
      * Move stuff to a module.
      
      * Split MMR stuff to it's own module.
      
      * Add docs.
      
      * Make parent hash optional.
      
      * LeafData failed approach.
      
      * Finally implement Compact stuff.
      
      * Compact encoding WiP
      
      * Implement remaining pieces.
      
      * Fix tests
      
      * Add docs to compact.
      
      * Implement for tuples.
      
      * Fix documentation.
      
      * Fix warnings and address review suggestion.
      
      * Update frame/merkle-mountain-range/src/primitives.rs
      
      Co-authored-by: default avatarcheme <[email protected]>
      
      * Address review grumbles.
      
      * Removing missing crate.
      
      * Fix test.
      
      * Add some docs and test.
      
      * Add multiple instances.
      
      * Cargo.toml sync.
      
      * Fix no_std compilation.
      
      * More no_std stuff.
      
      * Rename MMR struct.
      
      * Addressing other grumbles.
      
      * Fix test.
      
      * Remove format for no_std compat.
      
      * Add test for MMR pallet.
      
      * Fix std feature.
      
      * Update versions.
      
      * Add to node/runtime.
      
      * Add hook to insert digest.
      
      * Make primitives public.
      
      * Update lib.rs
      
      tech spec/typos etc
      
      * Use WeightInfo and benchmarks.
      
      * Fix test.
      
      * Fix benchmarks.
      
      * Trait -> Config.
      
      * Fix typo.
      
      * Fix tests.
      
      Co-authored-by: default avatarcheme <[email protected]>
      Co-authored-by: default avatarAddie Wagenknecht <[email protected]>
      02f66e88
    • Benjamin Kampmann's avatar
      Expand remote keystore interface to allow for hybrid mode (#7628) · 5ce8c333
      Benjamin Kampmann authored
      * update to latest master
      
      * updates on docs, license, meta
      
      * hide ssrs behind feature flag
      
      * implement remaining functions on the server
      
      * sign server line length fix
      
      * fix tests
      
      * fixup in-memory-keystore
      
      * adding failsafe
      
      * skipping ecdsa test for now
      
      * remote keystore param
      
      * remote sign urls made available
      
      * integrating keystore remotes features
      
      * don't forget the dependency
      
      * remove old cruft
      
      * reset local keystore
      
      * applying suggestions
      
      * Switch to single remote, minor grumbles
      
      * minor grumbles, docs
      5ce8c333
    • Alexander Theißen's avatar
      Allow capping the amount of work performed when deleting a child trie (#7671) · 9ce24fe1
      Alexander Theißen authored
      
      
      * Allow Backend::for_keys_in_child_storage to be aborted by the closure
      
      * Ext::kill_child_storage now takes an upper limit for backend deletion
      
      * Add Storage::storage_kill_limited() runtime interface
      
      * review: Use a new version of kill_storage instead of a new interface
      
      * review: Simplify boolean expression
      
      Co-authored-by: default avatarcheme <[email protected]>
      
      * review: Rename for_keys_in_child_storage
      
      Co-authored-by: default avatarcheme <[email protected]>
      9ce24fe1
  15. Dec 08, 2020
  16. Dec 07, 2020
  17. Dec 06, 2020
  18. Dec 03, 2020
    • mattrutherford's avatar
      RPC to allow setting the log filter (#7474) · 56c97ce6
      mattrutherford authored
      
      
      * Add filter reload handle
      
      * add RPC, move logging module from cli to tracing
      
      * remove dup fn
      
      * working example
      
      * Update client/rpc-api/src/system/mod.rs
      
      Co-authored-by: default avatarPierre Krieger <[email protected]>
      
      * Prefer "set" to "reload"
      
      * Re-enable the commented out features of the logger
      
      * Remove duplicate code
      
      * cleanup
      
      * unneeded lvar
      
      * Bump to latest patch release
      
      * Add new CLI option to disable log filter reloading,
      
      Move profiling CLI options to SharedParams
      
      * Apply suggestions from code review
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      
      * Applied suggestions from reviews
      
      * Fix calls to init_logger()
      
      * Handle errors when parsing logging directives
      
      * Deny `system_setLogFilter` RPC by default
      
      * One more time
      
      * Don't ignore parse errors for log directives set via CLI or RPC
      
      * Improve docs
      
      * Apply suggestions from code review
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      
      * Update client/cli/src/config.rs
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      
      * fix merge errors
      
      * include default directives with system_setLogFilter RPC,
      
      implement system_rawSetLogFilter RPC to exclude defaults
      
      * docs etc...
      
      * update test
      
      * refactor: rename fn
      
      * Add a test for system_set_log_filter – NOTE: the code should likely change to return an error when bad directives are passed
      
      * Update client/cli/src/lib.rs
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      
      * Address review grumbles
      
      * Add doc note on panicking behaviour
      
      * print all invalid directives before panic
      
      * change RPCs to: addLogFilter and resetLogFilter
      
      * make CLI log directives default
      
      * add comments
      
      * restore previous behaviour to panic when hard-coded directives are invalid
      
      * change/refactor directive parsing
      
      * fix line width
      
      * add test for log filter reloading
      
      * Apply suggestions from code review
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      
      * finish up suggestions from code review
      
      * improve test
      
      * change expect message
      
      * change fn name
      
      * Apply suggestions from code review
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      
      * Apply suggestions from code review
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      
      * add docs, remove unused fn
      
      * propagate Err on invalid log directive
      
      * Update tracing-subscriber version
      
      * Improve docs for `disable_log_reloading` CLI param
      
      Co-authored-by: default avatarMatt <[email protected]>
      Co-authored-by: default avatarDavid <[email protected]>
      Co-authored-by: default avatarPierre Krieger <[email protected]>
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      56c97ce6
    • Krishna Singh's avatar
      Changed map to filter map so that Phragmen ignores empty voters (#7378) · f717a204
      Krishna Singh authored
      * Changed map to filter map so that Phragmen ignores empty voters
      
      * Resolve flaws and added test case
      
      * Updated test
      f717a204
  19. Dec 02, 2020
  20. Dec 01, 2020
  21. Nov 30, 2020
  22. Nov 28, 2020
  23. Nov 27, 2020