Skip to content
  1. Jul 12, 2021
    • ordian's avatar
      more fine grained runtime api caching + a fix for av-store (#3457) · 73ed24f7
      ordian authored
      * finer grained runtime-api caching
      
      * fix av-store
      
      * simplify a request
      
      * remove unused imports
      
      * fix tests
      73ed24f7
    • Robert Klotzner's avatar
      DoS protection on the collator protocol (#3446) · 6994682a
      Robert Klotzner authored
      
      
      * Move on to next validator after timeout.
      
      * Better naming.
      
      * Wrong implementation of validator fetch timeouts.
      
      * Validator side: Move on to next collator
      
      if download takes too long.
      
      * Drop multiple requests from same validator.
      
      * Add test that next response is sent after timeout.
      
      * Multiple requests by same validator should get dropped.
      
      * Test that another collator is tried
      
      after exclusive download time.
      
      * Add dep.
      
      * Cleanup.
      
      * Merge fix.
      
      * Review remarks.
      
      * Fixes.
      
      * Add log targets to trace logs
      
      Co-authored-by: default avatarAndronik Ordian <[email protected]>
      6994682a
  2. Jul 09, 2021
    • asynchronous rob's avatar
      Wire up candidate backing, approval-voting to disputes (#3348) · e5122227
      asynchronous rob authored
      * add a from_backing_statement to SignedDisputeStatement
      
      * inform dispute coordinator of all backing statements
      
      * add dispute coordinator message to backing tests
      
      * send positive dispute statement with every approval
      
      * issue disputes when encountering invalid candidates.
      
      * try to fix flaky test for CI (passed locally)
      
      * guide: keep track of concluded-positive disputes until pruned
      
      * guide: block implications
      
      * guide: new dispute inherent flow
      
      * mostly implement recency changes for dispute coordinator
      
      * add a clock to dispute coordinator
      
      * adjust DB tests
      
      * fix and add new dispute coordinator tests
      
      * provisioner: select disputes
      
      * import all validators' approvals
      
      * address nit: refactor backing statement submission
      
      * gracefully handle disconnected dispute coordinator
      
      * remove `review` comment
      
      * fix up old_tests
      
      * fix approval-voting compilation
      
      * fix backing compilation
      
      * use known-leaves in WaitForActivation
      
      * follow-up test fixing
      
      * add back allow(dead_code)
      e5122227
    • Kian Paimani's avatar
      Companion for `substrate/pull/9286` (#3443) · d53ec86b
      Kian Paimani authored
      
      
      * Fix weights
      
      * try something to unbreak companion
      
      * update Substrate
      
      Co-authored-by: default avatarAndronik Ordian <[email protected]>
      Co-authored-by: parity-processbot <>
      d53ec86b
    • Bernhard Schuster's avatar
      thiserror annotations + spelling (#3452) · d76560fe
      Bernhard Schuster authored
      * remove duplicate thiserror annotations
      
      * chore: cargo spellcheck
      d76560fe
    • Robert Klotzner's avatar
      Dispute distribution implementation (#3282) · b5257b24
      Robert Klotzner authored
      * Dispute protocol.
      
      * Dispute distribution protocol.
      
      * Get network requests routed.
      
      * WIP: Basic dispute sender logic.
      
      * Basic validator determination logic.
      
      * WIP: Getting things to typecheck.
      
      * Slightly larger timeout.
      
      * More typechecking stuff.
      
      * Cleanup.
      
      * Finished most of the sending logic.
      
      * Handle active leaves updates
      
      - Cleanup dead disputes
      - Update sends for new sessions
      - Retry on errors
      
      * Pass sessions in already.
      
      * Startup dispute sending.
      
      * Provide incoming decoding facilities
      
      and use them in statement-distribution.
      
      * Relaxed runtime util requirements.
      
      We only need a `SubsystemSender` not a full `SubsystemContext`.
      
      * Better usability of incoming requests.
      
      Make it possible to consume stuff without clones.
      
      * Add basic receiver functionality.
      
      * Cleanup + fixes for sender.
      
      * One more sender fix.
      
      * Start receiver.
      
      * Make sure to send responses back.
      
      * WIP: Exposed authority discovery
      
      * Make tests pass.
      
      * Fully featured receiver.
      
      * Decrease cost of `NotAValidator`.
      
      * Make `RuntimeInfo` LRU cache size configurable.
      
      * Cache more sessions.
      
      * Fix collator protocol.
      
      * Disable metrics for now.
      
      * Make dispute-distribution a proper subsystem.
      
      * Fix naming.
      
      * Code style fixes.
      
      * Factored out 4x copied mock function.
      
      * WIP: Tests.
      
      * Whitespace cleanup.
      
      * Accessor functions.
      
      * More testing.
      
      * More Debug instances.
      
      * Fix busy loop.
      
      * Working tests.
      
      * More tests.
      
      * Cleanup.
      
      * Fix build.
      
      * Basic receiving test.
      
      * Non validator message gets dropped.
      
      * More receiving tests.
      
      * Test nested and subsequent imports.
      
      * Fix spaces.
      
      * Better formatted imports.
      
      * Import cleanup.
      
      * Metrics.
      
      * Message -> MuxedMessage
      
      * Message -> MuxedMessage
      
      * More review remarks.
      
      * Add missing metrics.rs.
      
      * Fix flaky test.
      
      * Dispute coordinator - deliver confirmations.
      
      * Send out `DisputeMessage` on issue local statement.
      
      * Unwire dispute distribution.
      
      * Review remarks.
      
      * Review remarks.
      
      * Better docs.
      b5257b24
  3. Jul 08, 2021
    • Robert Klotzner's avatar
      Guide updates for disputes. (#3401) · 20993b32
      Robert Klotzner authored
      
      
      * Guide updates for disputes.
      
      * Working availability recovery flood protection.
      
      * More fixes.
      
      * Formatting.
      
      * Fix.
      
      * Update roadmap/implementers-guide/src/node/disputes/dispute-participation.md
      
      Co-authored-by: default avatarSergei Shulepov <[email protected]>
      
      * Review remarks.
      
      Co-authored-by: default avatarSergei Shulepov <[email protected]>
      20993b32
    • Bernhard Schuster's avatar
    • Lldenaurois's avatar
      Approval voting full subsystem tests (#3391) · 2510bfc5
      Lldenaurois authored
      * node/approval-voting: Introduce Backend trait and Overlaybackend
      
      This commit introduces a Backend trait and attempts to move away
      from the Action model via an OverlayBackend as in the ChainSelection
      subsystem.
      
      * node/approval-voting: Add WriteOps for StoredBlockRange and BlocksAtHeight
      
      * node/approval-voting: Add load_all_blocks to overlay
      
      * node/approval-voting: Get all module tests to pass.
      
      This commit modifies all tests to ensure tests are passing.
      
      * node/approval-voting: Address oversights in the previous commit
      
      This commit addresses some oversights in the prior commit.
      
      1. Inner errors in backend.write were swallowed
      2. One-off write functions removed to avoid useless abstraction
      3. Touch-ups in general
      
      * node/approval-voting: Move from TestDB to dyn KeyValueDB
      
      This commit removes the TestDB from tests.rs and replaces it with
      an in-memory kvdb.
      
      * node/approval-voting: Address feedback
      
      * node/approval-voting: Add license to ops.rs
      
      * node/approval-voting: Address second-pass feedback
      
      * Add TODO
      
      * node/approval-voting: Bump spec_version
      
      * node/approval-voting: Address final comments.
      
      * node/approval-voting: Introduce framework for full subsystem tests
      
      * node/approval-voting: Introduce basic tests to attempt to provide
      coverage via full subsystem tests
      
      * node/approval-voting: Introduce Chainbuilder
      2510bfc5
    • Lldenaurois's avatar
      Approval voting overlay db (#3366) · 7313e485
      Lldenaurois authored
      * node/approval-voting: Introduce Backend trait and Overlaybackend
      
      This commit introduces a Backend trait and attempts to move away
      from the Action model via an OverlayBackend as in the ChainSelection
      subsystem.
      
      * node/approval-voting: Add WriteOps for StoredBlockRange and BlocksAtHeight
      
      * node/approval-voting: Add load_all_blocks to overlay
      
      * node/approval-voting: Get all module tests to pass.
      
      This commit modifies all tests to ensure tests are passing.
      
      * node/approval-voting: Address oversights in the previous commit
      
      This commit addresses some oversights in the prior commit.
      
      1. Inner errors in backend.write were swallowed
      2. One-off write functions removed to avoid useless abstraction
      3. Touch-ups in general
      
      * node/approval-voting: Move from TestDB to dyn KeyValueDB
      
      This commit removes the TestDB from tests.rs and replaces it with
      an in-memory kvdb.
      
      * node/approval-voting: Address feedback
      
      * node/approval-voting: Add license to ops.rs
      
      * node/approval-voting: Address second-pass feedback
      
      * Add TODO
      
      * node/approval-voting: Bump spec_version
      
      * node/approval-voting: Address final comments.
      7313e485
    • Seun Lanlege's avatar
      Seun txpool refactor (#3419) · de445adb
      Seun Lanlege authored
      * companion for paritytech/substrate#9228
      
      * sc_transaction_pool_api
      
      * update Substrate
      
      Co-authored-by: parity-processbot <>
      de445adb
    • ordian's avatar
      bump parity-ws (#3442) · 0b81ff61
      ordian authored
      0b81ff61
  4. Jul 07, 2021
  5. Jul 06, 2021
  6. Jul 05, 2021
  7. Jul 02, 2021
  8. Jul 01, 2021
  9. Jun 30, 2021
  10. Jun 29, 2021
  11. Jun 28, 2021
    • Shawn Tabrizi's avatar
      Companion for #9193 (#3376) · 4911251a
      Shawn Tabrizi authored
      * update name
      
      * update Substrate
      
      Co-authored-by: parity-processbot <>
      4911251a
    • Peter Goodspeed-Niklaus's avatar
      Companion for Decouple Staking and Election - Part 3: Signed Phase (#2793) · 95736d1b
      Peter Goodspeed-Niklaus authored
      * Companion for Decouple Staking and Election - Part 3: Signed Phase
      
      https://github.com/paritytech/substrate/pull/7910
      
      * remove some config types
      
      * allow up to 5 signed submissions on polkadot and kusama
      
      * signed phase is equal induration to unsigned phase
      
      * use chain defaults for base and per-byte deposits; >= 16 SignedMaxSubmissions
      
      * use a small but non-trivial solution reward
      
      * reduce signed deposit per byte fee
      
      * reduce signed reward, adjust polkadot expected soln size
      
      * copy submit benchmark from substrate
      
      * demo calculating an appropriate fee for the signed reward
      
      Unfortunately, this doesn't work: it needs to be a constant function,
      and AFAIK there's no way to make a trait method constant.
      
      * SignedRewardBase is 1.5x the fee to submit a signed solution
      
      * all chains use deposit byte of base per 50k
      
      * update Substrate
      
      * cargo update -p pallet-election-provider-multi-phase
      
      Co-authored-by: parity-processbot <>
      95736d1b