Skip to content
  1. Dec 15, 2020
  2. Dec 14, 2020
  3. Dec 12, 2020
  4. Dec 11, 2020
  5. Dec 10, 2020
  6. 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
    • Max Inden's avatar
      frame/staking/README: Fix broken link (#7703) · b29d6092
      Max Inden authored
      b29d6092
    • 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
    • André Silva's avatar
      fork-tree: expose silent failures of is_descendent_of (#7695) · 2ed28320
      André Silva authored
      * fork-tree: expose silent failures of is_descendent_of
      
      * fork-tree: use mem::take instead of mem::swap
      2ed28320
    • 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
    • Shawn Tabrizi's avatar
    • 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
  7. Dec 08, 2020
  8. Dec 07, 2020
  9. Dec 06, 2020
  10. Dec 04, 2020
    • Shawn Tabrizi's avatar
      Add Standard Error to Weight Template (#7652) · 4b8cee9e
      Shawn Tabrizi authored
      * Add standard error to weight template
      
      * fix test compile
      4b8cee9e
    • Gavin Wood's avatar
      Features needed for reserve-backed stablecoins (#7152) · 80af50b8
      Gavin Wood authored
      
      
      * Features needed for reserve-backed stablecoins
      
      * Builds & tests.
      
      * Double map for an efficient destroy.
      
      * Update frame/assets/src/lib.rs
      
      Co-authored-by: default avatarNikolay Volf <[email protected]>
      
      * ED/zombie-count/refs
      
      Feature: ED/minimum balance enforcement
      Feature: enforce zombie count
      Feature: allow system-alive accounts to exist, but add reference
      
      * Update frame/assets/src/lib.rs
      
      Co-authored-by: default avatarNikolay Volf <[email protected]>
      
      * Update frame/assets/Cargo.toml
      
      Co-authored-by: default avatarNiklas Adolfsson <[email protected]>
      
      * Docs
      
      * Some tests
      
      * More tests
      
      * Allow for max_zombies to be adjusted
      
      * Test for set_max_zombies
      
      * Tests and a couple of fixes
      
      * First few benchmarks
      
      * Benchmarks.
      
      * Fix error message in test
      
      * Fixes
      
      * Fixes
      
      * Fixes
      
      * cargo run --release --features runtime-benchmarks --manifest-path bin/node/cli/Cargo.toml -- benchmark --chain dev --steps 50 --repeat 20 --extrinsic * --execution=wasm --wasm-execution=compiled --output ./bin/node/runtime/src/weights --header ./HEADER --pallet pallet_assets
      
      * Update frame/assets/src/lib.rs
      
      Co-authored-by: default avatarGuillaume Thiolliere <[email protected]>
      
      * Fixes
      
      * Fixes
      
      * Fixes
      
      * cargo run --release --features runtime-benchmarks --manifest-path bin/node/cli/Cargo.toml -- benchmark --chain dev --steps 50 --repeat 20 --extrinsic * --execution=wasm --wasm-execution=compiled --output ./bin/node/runtime/src/weights --header ./HEADER --pallet pallet_assets
      
      * Fixes
      
      * Update default weight
      
      * Add proper verification to benchmarks
      
      * minor improvements to tests
      
      * Update frame/assets/src/benchmarking.rs
      
      Co-authored-by: default avatarKian Paimani <[email protected]>
      
      * Fix
      
      * New weights system
      
      * fix compile
      
      * cargo run --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_assets --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/assets/src/weights.rs --template=./.maintain/frame-weight-template.hbs
      
      Co-authored-by: default avatarNikolay Volf <[email protected]>
      Co-authored-by: default avatarNiklas Adolfsson <[email protected]>
      Co-authored-by: default avatarParity Benchmarking Bot <[email protected]>
      Co-authored-by: default avatarGuillaume Thiolliere <[email protected]>
      Co-authored-by: default avatarShawn Tabrizi <[email protected]>
      Co-authored-by: default avatarKian Paimani <[email protected]>
      80af50b8
  11. Dec 03, 2020
    • Bastian Köcher's avatar
      Don't panic on a sink error (#7666) · 947b82df
      Bastian Köcher authored
      947b82df
    • Bastian Köcher's avatar
      Use block requests to check if block responses are correct (#7653) · 2877c038
      Bastian Köcher authored
      * Use block requests to check if block responses are correct
      
      Before this pr sync relied on recently announced blocks to check if a
      given peer response is correct. However this could lead to situations
      where we requested a block from a peer and it gave us the requested, but
      we rejected the response because this peer never send us an announcement
      for the given block. See the added tests for a reproduction of the
      problem.
      With this pr, we now take the block request to check if a given response
      matches the request. A node should not send us a block response
      without a request anyway.
      
      Essentially there is still a bug, because as you see in the test, we are
      requesting block 2, while we already have this block imported. It even
      happens that we request a block from the network that we have authored.
      However a fix for this would require some more refactoring of the sync code.
      
      * Revert change
      
      * Give the test a proper name
      
      * Add moar logging
      
      * Move cheaper checks
      
      * Move checks to common place
      2877c038