Skip to content
  1. Mar 02, 2021
  2. Feb 26, 2021
    • ordian's avatar
    • Robert Klotzner's avatar
      Request based availability distribution (#2423) · 48409e55
      Robert Klotzner authored
      * WIP
      
      * availability distribution, still very wip.
      
      Work on the requesting side of things.
      
      * Some docs on what I intend to do.
      
      * Checkpoint of session cache implementation
      
      as I will likely replace it with something smarter.
      
      * More work, mostly on cache
      
      and getting things to type check.
      
      * Only derive MallocSizeOf and Debug for std.
      
      * availability-distribution: Cache feature complete.
      
      * Sketch out logic in `FetchTask` for actual fetching.
      
      - Compile fixes.
      - Cleanup.
      
      * Format cleanup.
      
      * More format fixes.
      
      * Almost feature complete `fetch_task`.
      
      Missing:
      
      - Check for cancel
      - Actual querying of peer ids.
      
      * Finish FetchTask so far.
      
      * Directly use AuthorityDiscoveryId in protocol and cache.
      
      * Resolve `AuthorityDiscoveryId` on sending requests.
      
      * Rework fetch_task
      
      - also make it impossible to check the wrong chunk index.
      - Export needed function in validator_discovery.
      
      * From<u32> implementation for `ValidatorIndex`.
      
      * Fixes and more integration work.
      
      * Make session cache proper lru cache.
      
      * Use proper lru cache.
      
      * Requester finished.
      
      * ProtocolState -> Requester
      
      Also make sure to not fetch our own chunk.
      
      * Cleanup + fixes.
      
      * Remove unused functions
      
      - FetchTask::is_finished
      - SessionCache::fetch_session_info
      
      * availability-distribution responding side.
      
      * Cleanup + Fixes.
      
      * More fixes.
      
      * More fixes.
      
      adder-collator is running!
      
      * Some docs.
      
      * Docs.
      
      * Fix reporting of bad guys.
      
      * Fix tests
      
      * Make all tests compile.
      
      * Fix test.
      
      * Cleanup + get rid of some warnings.
      
      * state -> requester
      
      * Mostly doc fixes.
      
      * Fix test suite.
      
      * Get rid of now redundant message types.
      
      * WIP
      
      * Rob's review remarks.
      
      * Fix test suite.
      
      * core.relay_parent -> leaf for session request.
      
      * Style fix.
      
      * Decrease request timeout.
      
      * Cleanup obsolete errors.
      
      * Metrics + don't fail on non fatal errors.
      
      * requester.rs -> requester/mod.rs
      
      * Panic on invalid BadValidator report.
      
      * Fix indentation.
      
      * Use typed default timeout constant.
      
      * Make channel size 0, as each sender gets one slot anyways.
      
      * Fix incorrect metrics initialization.
      
      * Fix build after merge.
      
      * More fixes.
      
      * Hopefully valid metrics names.
      
      * Better metrics names.
      
      * Some tests that already work.
      
      * Slightly better docs.
      
      * Some more tests.
      
      * Fix network bridge test.
      48409e55
    • ordian's avatar
      make runtime_api non blocking task again (#2531) · 241b1f12
      ordian authored
      241b1f12
    • Bernhard Schuster's avatar
      05f74c21
    • Bernhard Schuster's avatar
      test: add unit test to catch missing distribution to subsystems faster (#2495) · 31327eb0
      Bernhard Schuster authored
      
      
      * test: add unit test to catch missing distribution to subsystems faster
      
      * add a simple count
      
      * introduce proc macro to generate dispatch type
      
      * refactor
      
      * refactor
      
      * chore: add license
      
      * fixup unit test
      
      * fixup merge
      
      * better errors
      
      * better fmt
      
      * fix error spans
      
      * better docs
      
      * better error messages
      
      * ui test foo
      
      * Update node/subsystem/dispatch-gen/src/lib.rs
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      
      * Update node/network/bridge/src/lib.rs
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      
      * Update node/subsystem/Cargo.toml
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      
      * Update node/subsystem/dispatch-gen/src/lib.rs
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      
      * Update node/subsystem/dispatch-gen/src/lib.rs
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      
      * Update node/network/bridge/src/lib.rs
      
      Co-authored-by: default avatarAndronik Ordian <[email protected]>
      
      * fix compilation
      
      * use find_map
      
      * drop the silly 2, use _inner instead
      
      * Update node/network/bridge/src/lib.rs
      
      Co-authored-by: default avatarAndronik Ordian <[email protected]>
      
      * Update node/subsystem/dispatch-gen/src/lib.rs
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      
      * nail deps down
      
      * more into()
      
      * flatten
      
      * missing use statement
      
      * fix messages order
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      Co-authored-by: default avatarAndronik Ordian <[email protected]>
      31327eb0
  3. Feb 25, 2021
  4. Feb 24, 2021
  5. Feb 23, 2021
    • asynchronous rob's avatar
    • asynchronous rob's avatar
      Approval Checking Improvements Omnibus (#2480) · 3300b533
      asynchronous rob authored
      * add tracing to approval voting
      
      * notify if session info is not working
      
      * add dispute period to chain specs
      
      * propagate genesis session to parachains runtime
      
      * use `on_genesis_session`
      
      * protect against zero cores in computation
      
      * tweak voting rule to be based off of best and add logs
      
      * genesis configuration should use VRF slots only
      
      * swallow more keystore errors
      
      * add some docs
      
      * make validation-worker args non-optional and update clap
      
      * better tracing for bitfield signing and provisioner
      
      * pass amount of bits in bitfields to inclusion instead of recomputing
      
      * debug -> warn for some logs
      
      * better tracing for availability recovery
      
      * a little av-store tracing
      
      * bridge: forward availability recovery messages
      
      * add missing try_from impl
      
      * some more tracing
      
      * improve approval distribution tracing
      
      * guide: hold onto pending approval messages until NewBlocks
      
      * Hold onto pending approval messages until NewBlocks
      
      * guide: adjust comment
      
      * process all actions for one wakeup at a time
      
      * vec
      
      * fix network bridge test
      
      * replace randomness-collective-flip with Babe
      
      * remove PairNotFound
      3300b533
    • Bernhard Schuster's avatar
      feat/view: assure heads in a view are sorted (#2493) · e3f776ab
      Bernhard Schuster authored
      
      
      * feat/view: assure heads in a view are sorted
      
      Allows O(n) comparisons, adds an alternate equiv relation
      which takes O(n^2) for integrity verification.
      
      Ref #2133
      
      * revert: remove custom PartialEq impl, there are no duplicates
      
      * fix: do not sort the live_heads, that alters the local view
      
      * refactor/view: heads should not be public
      
      * chore/spellcheck: add unfinalized
      
      * fix/view: add missing len() and is_empty() fns
      
      * quirk
      
      * vec is not view
      
      * Update node/network/approval-distribution/src/tests.rs
      
      Co-authored-by: default avatarAndronik Ordian <[email protected]>
      
      * Update node/network/bridge/src/lib.rs
      
      Co-authored-by: default avatarAndronik Ordian <[email protected]>
      
      * Update node/network/protocol/src/lib.rs
      
      Co-authored-by: default avatarAndronik Ordian <[email protected]>
      
      * fixup comment
      
      * fix botched test
      
      Co-authored-by: default avatarAndronik Ordian <[email protected]>
      e3f776ab
  6. Feb 22, 2021
  7. Feb 19, 2021
  8. Feb 18, 2021
  9. Feb 17, 2021
  10. Feb 16, 2021
    • asynchronous rob's avatar
      Disputes High-level rewrite & Disputes runtime (#2424) · a8d3aca1
      asynchronous rob authored
      * REVERT: comment out graphviz
      
      * rewrite most of protocol-disputes
      
      * write about conclusion and  chain selection
      
      * tie back in overview
      
      * basic disputes module
      
      * guide: InclusionInherent -> ParaInherent
      
      * language
      
      * add ParaInherentData type
      
      * plug parainherentdata into provisioner
      
      * provide_multi_dispute
      
      * tweak
      
      * inclusion pipeline logic for disputes
      
      * be clearer about signature checking
      
      * reject backing of disputed blocks
      
      * some type rejigging
      
      * known-disputes runtime API
      
      * wire up inclusion
      
      * Revert "REVERT: comment out graphviz"
      
      This reverts commit 66203e362f7872cb413d258f74634a0aad70302b.
      
      * timeouts
      
      * include in initialization order
      
      * address grumbles
      a8d3aca1
    • thiolliere's avatar
      companion: Babe remove inherent (#2438) · 8734cf62
      thiolliere authored
      8734cf62
    • ordian's avatar
      fix approval import tests and some bugs (#2452) · b28e1b4e
      ordian authored
      * tests: use future::join
      
      * fix panic in cache_session_info_for_head
      
      * fix test assertion
      
      * fix infinite loop in determine_new_blocks
      
      * fix ordering in determine_new_blocks
      
      * fix expected ancestry in tests
      b28e1b4e
    • asynchronous rob's avatar
      Integrate Approval Voting into Overseer / Service / GRANDPA (#2412) · 4f21cc7e
      asynchronous rob authored
      * integrate approval voting into overseer
      
      * expose public API and make keystore arc
      
      * integrate overseer in service
      
      * guide: `ApprovedAncestor` returns block number
      
      * return block number along with hash from ApprovedAncestor
      
      * introduce a voting rule for reporting on approval checking
      
      * integrate the delay voting rule
      
      * Rococo configuration
      
      * fix compilation and add slack
      
      * fix web-wasm build
      
      * tweak parameterization
      
      * migrate voting rules to asycn
      
      * remove hack comment
      4f21cc7e
  11. Feb 15, 2021
    • Sergey Pepyakin's avatar
      Mitigation of SIGBUS (#2440) · 5c68e6f9
      Sergey Pepyakin authored
      * Update shared-memory to new version & refactor
      
      This two are combined in a single commit because the new version of
      shared-memory doesn't provide the used functionality anymore.
      
      Therefore in order to update the version of this crate we implement the
      functionality that we need by ourselves, providing a cleaner API along
      the way.
      
      * Significantly decrease the required memory for a workspace
      
      For some reason it was allocating an entire GiB of memory. I suspect
      this has something to do with the current memory size limit of a PVF
      execution environment (the prior name suggests that). However, we don't
      need so much memory anywhere near that amount.
      
      In fact, we could reduce the allocated size even more, but that maybe
      for the next time.
      
      * Unlink shmem just after opening
      
      That will make sure that we don't leak the shmem accidentally.
      
      * Do not compile workspace mod for androind and wasm
      
      * Address some review comments
      
      * Fix the test runner
      
      * Fix missed +1 for the attached flag
      
      * Use .expect rather than .unwrap
      
      * Add a rustdoc for the workspace module
      
      * fixup! Use .expect rather than .unwrap
      
      * Add some doc comments to pub members
      
      * Warn on error removing shm_unlink
      
      * Change the alignment implementation
      
      * Fix the comment nit
      5c68e6f9
    • André Silva's avatar
      node: migrate grandpa voting rule to async api (#2422) · 4503346c
      André Silva authored
      
      
      * node: migrate grandpa voting rule to async api
      
      * node: fix grandpa voting rule tests
      
      * "Update Substrate"
      
      * update Substrate
      
      Co-authored-by: parity-processbot <>
      Co-authored-by: default avatarRobert Habermeier <[email protected]>
      4503346c