1. 16 Jul, 2021 1 commit
  2. 15 Jul, 2021 1 commit
  3. 14 Jul, 2021 1 commit
  4. 13 Jul, 2021 2 commits
    • Seun Lanlege's avatar
      Introduce test runner biolerplate (#2609) · 08e47ab6
      Seun Lanlege authored
      
      
      * adds test-runner boilerplate
      
      * revert to master
      
      * Update node/test/runtime/Cargo.toml
      Co-authored-by: Andronik Ordian's avatarAndronik Ordian <write@reusable.software>
      
      * fix warning
      
      * use polkadot_development_config
      
      * remove vestigial code
      
      * ...
      
      * remove unused dependencies
      
      * adds simnet binary
      
      * adds simnet binary
      
      * merged with remote
      
      * dummy to check pipeline
      
      * add 2 docker files and a build cmd
      
      * adds logging
      
      * atempt to use binary from build host
      
      * fix simnet-binary
      
      * fix docker commands
      
      * switch branches
      
      * ...
      
      * update docker file
      
      * update the dockerfile 2
      
      * add some message in the cheatsheet
      
      * add repo to chaches stage also
      
      * update paths
      
      * do only 1 stage build
      
      * add time when build cmd started
      
      * remove debugg commands
      
      * polkadot-simnet-substrate-working-version-v1
      
      * reduce size of polkadot-simnet image
      
      * update test runner api
      
      * update test-runner
      
      * ...
      
      * revert to master
      
      * Merge branch 'master' of github.com:paritytech/polkadot into substrate-test-runner
      
      * bump impl version
      
      * remove unused imports, fix test
      
      * was_binary.to_vec()
      
      * Apply suggestions from code review
      Co-authored-by: Andronik Ordian's avatarAndronik Ordian <write@reusable.software>
      
      * ...
      
      * remove unused import
      
      * remove unused import
      
      * adds post upgrade test
      
      * dry code
      
      * revert spec_version
      
      * update Cargo.lock
      
      * tested and it works
      
      * compare runtime spec version
      
      * fix spaces, remove docker files
      
      * replace spaces with tabs
      
      * Update runtime/polkadot/src/lib.rs
      Co-authored-by: Andronik Ordian's avatarAndronik Ordian <write@reusable.software>
      
      * ...
      
      * revert Cargo.lock
      
      * bump cargo.lock
      Co-authored-by: Andronik Ordian's avatarAndronik Ordian <write@reusable.software>
      Co-authored-by: Radu Popa's avatarradupopa2010 <radupopa2010@yahoo.com>
      Co-authored-by: CI system <>
      08e47ab6
    • Qinxuan Chen's avatar
      Companion for substrate#9197 (#3359) · 664c6eca
      Qinxuan Chen authored
      
      
      * Companion for substrate#9197
      Signed-off-by: default avatarkoushiro <koushiro.cqx@gmail.com>
      
      * update Substrate
      Co-authored-by: Shawn Tabrizi's avatarShawn Tabrizi <shawntabrizi@gmail.com>
      Co-authored-by: parity-processbot <>
      664c6eca
  5. 12 Jul, 2021 2 commits
    • Alexander Theißen's avatar
      Companion for #9276: Remove `Filter` impl on `()` (#3420) · 45c9b704
      Alexander Theißen authored
      * Switch from () to AllowAllFilter
      
      * Rename AllowAllFilter -> AllowAll
      
      * update Substrate
      
      Co-authored-by: parity-processbot <>
      45c9b704
    • Robert Klotzner's avatar
      DoS protection on the collator protocol (#3446) · 1d478329
      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: Andronik Ordian's avatarAndronik Ordian <write@reusable.software>
      1d478329
  6. 09 Jul, 2021 2 commits
    • Kian Paimani's avatar
      Companion for `substrate/pull/9286` (#3443) · 416876b1
      Kian Paimani authored
      
      
      * Fix weights
      
      * try something to unbreak companion
      
      * update Substrate
      Co-authored-by: Andronik Ordian's avatarAndronik Ordian <write@reusable.software>
      Co-authored-by: parity-processbot <>
      416876b1
    • Robert Klotzner's avatar
      Dispute distribution implementation (#3282) · f9d71f8c
      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.
      f9d71f8c
  7. 08 Jul, 2021 4 commits
    • Bernhard Schuster's avatar
    • Lldenaurois's avatar
      Approval voting full subsystem tests (#3391) · d80f8489
      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
      d80f8489
    • Seun Lanlege's avatar
      Seun txpool refactor (#3419) · 4d1ab296
      Seun Lanlege authored
      * companion for paritytech/substrate#9228
      
      * sc_transaction_pool_api
      
      * update Substrate
      
      Co-authored-by: parity-processbot <>
      4d1ab296
    • Andronik Ordian's avatar
      bump parity-ws (#3442) · 56e9658b
      Andronik Ordian authored
      56e9658b
  8. 07 Jul, 2021 4 commits
  9. 06 Jul, 2021 2 commits
  10. 05 Jul, 2021 4 commits
  11. 01 Jul, 2021 3 commits
  12. 29 Jun, 2021 1 commit
  13. 28 Jun, 2021 3 commits
    • Shawn Tabrizi's avatar
      Companion for #9193 (#3376) · 60341e12
      Shawn Tabrizi authored
      * update name
      
      * update Substrate
      
      Co-authored-by: parity-processbot <>
      60341e12
    • Peter Goodspeed-Niklaus's avatar
      Companion for Decouple Staking and Election - Part 3: Signed Phase (#2793) · d5fb3276
      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 <>
      d5fb3276
    • Bastian Köcher's avatar
      Use wasm-builder from git (#3354) · 109260c1
      Bastian Köcher authored
      
      
      * Use wasm-builder from git
      
      This brings new features like compressed runtimes out of the box.
      
      * chore: update wasm builder dep. from 3.0.0 to master
      
      * Fix tests
      
      * Update node/core/pvf/tests/it/main.rs
      Co-authored-by: Sergey Pepyakin's avatarSergei Shulepov <sergei@parity.io>
      Co-authored-by: Chevdor's avatarchevdor <chevdor@gmail.com>
      Co-authored-by: Sergey Pepyakin's avatarSergei Shulepov <sergei@parity.io>
      109260c1
  14. 25 Jun, 2021 3 commits
    • Svyatoslav Nikolsky's avatar
      Squashed 'bridges/' changes from b2099c5..23dda62 (#3369) · 944ff40d
      Svyatoslav Nikolsky authored
      23dda62 Rococo <> Wococo messages relay (#1030)
      bcde21d Update the wasm builder to substrate master (#1029)
      a8318ce Make target signer optional when sending message. (#1018)
      f8602e1 Fix insufficient balance when send message. (#1020)
      d95c0a7 greedy relayer don't need message dispatch to be prepaid if dispatch is supposed to be paid at the target chain (#1016)
      ad5876f Update types. (#1027)
      116cbbc CI: fix starting the pipeline (#1022)
      7e0fadd Add temporary `canary` job (#1019)
      6787091 Update types to contain dispatch_fee_payment (#1017)
      03f79ad Allow Root to assume SourceAccount. (#1011)
      372d019 Return dispatch_fee_payment from message details RPC (#1014)
      604eb1c Relay basic single-bit message dispatch results back to the source chain (#935)
      bf52fff Use plain source_queue view when selecting nonces for delivery (#1010)
      fc5cf7d pay dispatch fee at target chain (#911)
      1e35477 Bump Substrate to `286d7ce` (#1006)
      7ad07b3 Add --only-mandatory-headers mode (#1004)
      5351dc9 Messages relayer operating mode (#995)
      9bc29a7 Rococo <> Wococo relayer balance guard (#998)
      bc17341 rename messages_dispatch_weight -> message_details (#996)
      95be244 Bump Rococo and Wococo spec versions (#999)
      c35567b Move ChainWithBalances::NativeBalance -> Chain::Balance (#990)
      1bfece1 Fix some nits (#988)
      334ea0f Increase pause before starting relays again (#989)
      7fb8248 Fix clippy in test code (#993)
      d60ae50 fix clippy issues (#991)
      75ca813 Make sure GRANDPA shares state with RPC. (#987)
      da2a38a Bump Substrate (#986)
      5a9862f Update submit finality proof weight formula (#981)
      69df513 Flag for rejecting all outbound messages (#982)
      14d0506 Add script to setup bench machine. (#984)
      e74e8ab Move CI from GitHub Actions to GitLab (#814)
      c5ca5dd Custom justification verification (#979)
      643f10d Always run on-demand headers relay in complex relay (#975)
      a35b0ef Add JSON type definitions for Rococo<>Wococo bridge (#977)
      0eb83f2 Update cargo.deny (#980)
      e1d1f4c Bump Rococo/Wococo spec_version (#976)
      deac90d increase pause before starting relays (#974)
      68d6d79 Revert to use InspectCmd, bump substrate `6bef4f4` (#966)
      66e1508 Avoid hashing headers twice in verify_justification (#973)
      a31844f Bump `environmental` dependency (#972)
      2a4c29a in auto-relays keep trying to connect to nodes until connection is established (#971)
      0e767b3 removed stray file (#969)
      b9545dc Serve multiple lanes with single complex relay instance (#964)
      73419f4 Correct type error (#968)
      bac256f Start finality relay spec-version guards for Rococo <> Wococo finality relays (#965)
      bfd7037 pass source and target chain ids to account_ownership_proof (#963)
      8436073 Upstream changes from Polkadot repo (#961)
      e58d851 Increase account endowment amount (#960)
      
      git-subtree-dir: bridges
      git-subtree-split: 23dda6248236b27f20d76cbedc30e189cc6f736c
      944ff40d
    • Martin Pugh's avatar
      Bump versions & spec_versions (#3368) · ababff4b
      Martin Pugh authored
      * bump versions & spec_versions
      
      * bump Cargo.lock
      ababff4b
    • thiolliere's avatar
      Companion for upgrade of transaction-payment to pallet macro (#3267) · d5028035
      thiolliere authored
      
      
      * update generic of storages
      
      * update Substrate
      
      * Remove unused import
      
      * Remove unused import in test
      
      Co-authored-by: parity-processbot <>
      Co-authored-by: Keith Yeung's avatarKeith Yeung <kungfukeith11@gmail.com>
      d5028035
  15. 22 Jun, 2021 6 commits
    • asynchronous rob's avatar
      SelectChain implementation for relay chains (#3341) · 6331c25e
      asynchronous rob authored
      * stubbed SelectRelayChain
      
      * disconnected overseer handlers
      
      * add is_disconnected
      
      * add fallback in case overseer is disconnected
      
      * fall back on fallback
      
      * fetch leaves by calling into chain-selection subsystem
      
      * implement best_chain
      
      * mostly implement finality_target
      
      * chain constrain
      
      * metrics and maximum safeguard
      
      * remove review comment after review
      6331c25e
    • André Silva's avatar
      runtime: remove randomness collective flip pallet (#3347) · 869a130b
      André Silva authored
      
      
      * runtime: remove randomness collective flip pallet
      
      * add storage migration to remove key
      
      Co-Authored-By: parity-processbot <>
      Co-authored-by: Shawn Tabrizi's avatarShawn Tabrizi <shawntabrizi@gmail.com>
      869a130b
    • Lldenaurois's avatar
      Approval Checking: Avoid redundant checks (#3306) · 8d8d2a6e
      Lldenaurois authored
      * node/approval-voting: Introduce LruCache for pending Approval work
      
      This commit adds an LruCache that is intended to track the approval work
      submitted as background tasks in order to ensure that the validator needn't
      launch duplicate approval work for the same candidate across multiple blocks.
      A simple state machine is also introduced in order to differentiate pending
      and completed tasks. In addition, this LruCache will retain ValidationResults
      from the completed approval work once the task has completed. As per LruCache
      implementation, the oldest tasks will get evicted as new approval work is
      submitted to this cache.
      
      * node/approval-voting: Revert changes to master
      
      This commit reverts changes from the previous commit in order
      to simplify addressing the architecture discussion raised in the PR.
      
      * node/approval-voting: remove background task mpsc construct
      
      This diff removes the mpsc construct for background tasks in preparation
      for a move to leveraging RemoteHandles to launch approvals, rather than
      passing ApprovalRequests to a mpsc channel and handling the ApprovalRequests
      in the main subsystem task.
      
      * node/approval-voting: Introduce LRU Cache
      
      This commit introduces an LRU Cache but does not yet make use of it.
      
      * node/approval-voting: Remove BackgroundTasksMap and memoize currently_checking
      
      This commit removes the BackgroundTasksMap in the main subsystem task
      and introduces a method to keep track of RemoteHandles in such a way that
      we can ensure that a task is spawned once for a CandidateHash and
      relay parent tuple.
      
      * node/approval-voting: Remove BackgroundTasksMap and memoize currently_checking
      
      This commit removes the BackgroundTasksMap in the main subsystem task
      and introduces a map of FuturesUnordered per BlockNumber. In addition,
      a FusedFuture is generated by iterating across all FuturesUnordered for
      the BlockNumbers for which at least one candidate has approvals work
      running in the subsystem.
      
      * node/approval-voting: Address Rob's comments
      
      This diff removes the prior HashMap<BlockNumber, FuturesUnordered>
      construction and instead moves to a simple FuturesUnordered where
      all the work is await with Timeout.
      
      * node/approval-voting: Update Cargo.lock
      
      Due to a mismatch in rustc versions
      
      * node/approval-voting: Make use of actions when issuing_approval
      
      This commit fixes a small oversight in the logic of the prior commit.
      
      * node/approval-voting: Address Rob's feedback
      
      * node/approval-voting: Introduce lazy launch_approval evaluation
      
      * node/approval-voting: Send DistibruteApproval message on every LaunchApproval
      
      In addition to fixed the DistributeApproval bug, this commit also
      increases the size of the approvals cache and ensures the StaleGuard
      is removed when the advantageous approval state is reached.
      
      * node/approval-voting: Address final comments
      
      This commit removes the CandidateIndex from the ApprovalVoteRequest.
      Instead, the launch_approval function will compute the candidate_index
      from the block entry.
      
      In addition, a comment has been added explaining the difficulty of
      issuing approvals in the handle_actions function.
      
      * node/approval-voting: Set timeout to be 120s rather than 2s
      
      * Update Cargo.lock
      8d8d2a6e
    • dependabot[bot]'s avatar
      Bump paste from 1.0.4 to 1.0.5 (#3340) · bad890f8
      dependabot[bot] authored
      Bumps [paste](https://github.com/dtolnay/paste) from 1.0.4 to 1.0.5.
      - [Release notes](https://github.com/dtolnay/paste/releases)
      - [Commits](https://github.com/dtolnay/paste/compare/1.0.4...1.0.5
      
      )
      
      ---
      updated-dependencies:
      - dependency-name: paste
        dependency-type: direct:production
        update-type: version-update:semver-patch
      ...
      Signed-off-by: default avatardependabot[bot] <support@github.com>
      Co-authored-by: default avatardependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
      bad890f8
    • dependabot[bot]'s avatar
      Bump rand_chacha from 0.3.0 to 0.3.1 (#3225) · 217a4819
      dependabot[bot] authored
      Bumps [rand_chacha](https://github.com/rust-random/rand) from 0.3.0 to 0.3.1.
      - [Release notes](https://github.com/rust-random/rand/releases)
      - [Changelog](https://github.com/rust-random/rand/blob/master/CHANGELOG.md)
      - [Commits](https://github.com/rust-random/rand/compare/rand_chacha-0.3.0...rand_chacha-0.3.1
      
      )
      
      ---
      updated-dependencies:
      - dependency-name: rand_chacha
        dependency-type: direct:production
        update-type: version-update:semver-patch
      ...
      Signed-off-by: default avatardependabot[bot] <support@github.com>
      Co-authored-by: default avatardependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
      217a4819
    • Arkadiy Paronyan's avatar
      Fast sync companion PR (#3078) · 5b3e6ad4
      Arkadiy Paronyan authored
      
      
      * Fixed build
      
      * Bumped trie-db
      
      * update Substrate
      
      * impl-guide: fix broken links
      
      Co-authored-by: parity-processbot <>
      Co-authored-by: Andronik Ordian's avatarAndronik Ordian <write@reusable.software>
      5b3e6ad4
  16. 21 Jun, 2021 1 commit