Skip to content
Snippets Groups Projects
  1. Aug 02, 2021
  2. Aug 01, 2021
    • Shaun W's avatar
      XCM simulator (#3538) · 1b0baab4
      Shaun W authored
      * Add xcm-simulator and xcm-simulator-example.
      
      * Abstract xcmp and dmp handling.
      
      * Use mock message queue.
      
      * Xcm simulator example unit tests.
      
      * Use relay chain block number on sending msg.
      
      * Fix typo.
      
      * fmt
      
      * more fmt
      
      * Fix deps.
      1b0baab4
  3. Jul 30, 2021
    • Squirrel's avatar
      Companion for substrate #9319 (#3456) · 4c5b7309
      Squirrel authored
      * move client consensus code out of primitives
      
      * merging crates
      
      * import tweak
      
      * Fixing build: ServiceFactory is a word...
      
      * updating lock file
      
      * Fixed typo in error message
      
      (to bump build)
      
      * update Substrate
      
      Co-authored-by: parity-processbot <>
      4c5b7309
  4. Jul 27, 2021
  5. Jul 26, 2021
    • Bernhard Schuster's avatar
      integrate dispute finality (#3484) · 6519ba98
      Bernhard Schuster authored
      
      * finality_target adjustments
      
      * fn finality_target
      
      * partially address review comments
      
      * fixins
      
      * more rustic if condition
      
      * fix tests
      
      * fixins
      
      * Update node/core/approval-voting/src/lib.rs
      
      Co-authored-by: default avatarAndronik Ordian <write@reusable.software>
      
      * Update node/core/approval-voting/src/lib.rs
      
      Co-authored-by: default avatarRobert Habermeier <rphmeier@gmail.com>
      
      * review comments part one
      
      * rename candidates -> block_descriptions
      
      * testing outline (incomplete, WIP)
      
      * test foo
      
      * split RelayChainSelection into RelayChainSelection{,WithFallback}, introduce HeaderProvider{,Provider}
      
      * make some stuff public (revert this soon™)
      
      * some test improvements
      
      * slips of pens
      
      * test fixins
      
      * add another trait abstraction
      
      * pending edge case tests + warnings fixes
      
      * more test cases
      
      * fin
      
      * chore fmt
      
      * fix cargo.lock
      
      * Undo obsolete changes
      
      * // comments
      
      * make mod pub(crate)
      
      * fix
      
      * minimize static bounds
      
      * resolve number() as before
      
      * fmt
      
      * post merge fix
      
      * address some nits
      
      Co-authored-by: default avatarAndronik Ordian <write@reusable.software>
      Co-authored-by: default avatarRobert Habermeier <rphmeier@gmail.com>
      6519ba98
    • ordian's avatar
      enable disputes (#3478) · bd9b7438
      ordian authored
      
      * initial integration and migration code
      
      * fix tests
      
      * fix counting test
      
      * assume the current version on missing file
      
      * use SelectRelayChain
      
      * remove duplicate metric
      
      * Update node/service/src/lib.rs
      
      Co-authored-by: default avatarRobert Habermeier <rphmeier@gmail.com>
      
      * remove ApprovalCheckingVotingRule
      
      * address my concern
      
      * never mode for StagnantCheckInterval
      
      * REVERTME: some logs
      
      * w00t
      
      * it's ugly but it works
      
      * Revert "REVERTME: some logs"
      
      This reverts commit e210505a2e83e31c381394924500b69277bb042e.
      
      * it's handle, not handler
      
      * fix a few typos
      
      Co-authored-by: default avatarRobert Habermeier <rphmeier@gmail.com>
      bd9b7438
  6. Jul 23, 2021
  7. Jul 21, 2021
    • Lldenaurois's avatar
      Dispute coordinator - Recover disputes on startup (#3481) · 1858ff57
      Lldenaurois authored
      * node/dispute-coordinator: Introduce resume capability
      
      This commit introduces a resume capability for the
      dispute coordinator subsystem. Specifically, this will allow
      to recover data for disputes for which we have no local statements.
      
      * node/dispute-coordinator: Add resume function to TestState and modify Harness
      
      This commit modifies the TestHarness to return a TestState. We subsequently
      define a resume function on TestState that allows to interrupt the test and
      test specifically for behavior on startup of the subsystem.
      
      * node/dispute-coordinator: Implement resume functionality
      
      This commit implements the resume functionality for the subsystem.
      In addition, we will forward any DisputeParticipation::Participate
      message in order to ensure that disputes for which we do not have
      local statements may be recovered in due time.
      
      * Address Feedback
      
      * Modify to run handle_leaf on first import
      
      * Modify missing_local_statement logic
      
      * node/dispute-coordinator: Add simple test to ensure we adequately
      handle local_statements that are not missing.
      
      * Add missing keystore tests
      1858ff57
    • dependabot[bot]'s avatar
      Bump indexmap from 1.6.1 to 1.7.0 (#3497) · 1fd95607
      dependabot[bot] authored
      
      Bumps [indexmap](https://github.com/bluss/indexmap) from 1.6.1 to 1.7.0.
      - [Release notes](https://github.com/bluss/indexmap/releases)
      - [Commits](https://github.com/bluss/indexmap/compare/1.6.1...1.7.0)
      
      ---
      updated-dependencies:
      - dependency-name: indexmap
        dependency-type: direct:production
        update-type: version-update:semver-minor
      ...
      
      Signed-off-by: default avatardependabot[bot] <support@github.com>
      
      Co-authored-by: default avatardependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
      1fd95607
  8. Jul 20, 2021
  9. Jul 19, 2021
    • dependabot[bot]'s avatar
      Bump libc from 0.2.91 to 0.2.98 (#3496) · d3adc575
      dependabot[bot] authored
      
      Bumps [libc](https://github.com/rust-lang/libc) from 0.2.91 to 0.2.98.
      - [Release notes](https://github.com/rust-lang/libc/releases)
      - [Commits](https://github.com/rust-lang/libc/compare/0.2.91...0.2.98)
      
      ---
      updated-dependencies:
      - dependency-name: libc
        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>
      d3adc575
    • dependabot[bot]'s avatar
      Bump slotmap from 1.0.2 to 1.0.5 (#3495) · 6ba5d536
      dependabot[bot] authored
      
      Bumps [slotmap](https://github.com/orlp/slotmap) from 1.0.2 to 1.0.5.
      - [Release notes](https://github.com/orlp/slotmap/releases)
      - [Changelog](https://github.com/orlp/slotmap/blob/master/RELEASES.md)
      - [Commits](https://github.com/orlp/slotmap/compare/v1.0.2...v1.0.5)
      
      ---
      updated-dependencies:
      - dependency-name: slotmap
        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>
      6ba5d536
    • Andreas Doerr's avatar
      Gossip rebroadcast rate limiter (#3494) · 67e671ff
      Andreas Doerr authored
      67e671ff
    • asynchronous rob's avatar
      Disputes runtime (#2947) · ec98120f
      asynchronous rob authored
      
      * disputes module skeleton and storage
      
      * implement dispute module initialization logic
      
      * implement disputes session change logic
      
      * provide dispute skeletons
      
      * deduplication & ancient check
      
      * fix a couple of warnings
      
      * begin provide_dispute_data impl
      
      * flesh out statement set import somewhat
      
      * move ApprovalVote to shared primitives
      
      * add a signing-payload API to explicit dispute statements
      
      * implement statement signature checking
      
      * some bitflags glue for observing changes in disputes
      
      * implement dispute vote import logic
      
      * flesh out everything except slashing
      
      * guide: tweaks
      
      * declare and use punishment trait
      
      * punish validators for inconclusive disputes
      
      * guide: tiny fix
      
      * guide: update docs
      
      * add disputes getter fn
      
      * guide: small change to spam slots handling
      
      * improve spam slots handling and fix some bugs
      
      * finish API of disputes runtime
      
      * define and deposit `RevertTo` log
      
      * begin integrating disputes into para_inherent
      
      * use precomputed slash_for/against
      
      * return candidate hash from process_bitfields
      
      * implement inclusion::collect_disputed
      
      * finish integration into rest of runtime
      
      * add Disputes to initializer
      
      * address suggestions
      
      * use pallet macro
      
      * fix typo
      
      * Update runtime/parachains/src/disputes.rs
      
      * add test: fix pruning
      
      * document specific behavior
      
      * deposit events on dispute changes
      
      * add an allow(unused) on fn disputes
      
      * add a dummy PunishValidators implementation
      
      * add disputes module to Rococo
      
      * add disputes module to westend runtime
      
      * add disputes module to test runtime
      
      * add disputes module to kusama runtime
      
      * guide: prepare for runtime API for checking frozenness
      
      * remove revert digests in favor of state variable
      
      * merge reversions
      
      * Update runtime/parachains/src/disputes.rs
      
      Co-authored-by: default avatarAndré Silva <123550+andresilva@users.noreply.github.com>
      
      * Update runtime/parachains/src/disputes.rs
      
      Co-authored-by: default avatarAndré Silva <123550+andresilva@users.noreply.github.com>
      
      * Update runtime/parachains/src/disputes.rs
      
      Co-authored-by: default avatarAndré Silva <123550+andresilva@users.noreply.github.com>
      
      * add byzantine_threshold and supermajority_threshold utilities to primitives
      
      * use primitive helpers
      
      * deposit revert event when freezing chain
      
      * deposit revert log when freezing chain
      
      * test revert event and log are generated when freezing
      
      * add trait to decouple disputes handling from paras inherent handling
      
      * runtime: fix compilation and setup dispute handler
      
      * disputes: add hook for filtering out dispute statements
      
      * disputes: add initializer hooks to DisputesHandler
      
      * runtime: remove disputes pallet from all runtimes
      
      * tag TODOs
      
      * don't import any dispute statements just yet...
      
      * address grumbles
      
      * fix spellcheck, hopefully
      
      * maybe now?
      
      * last spellcheck round
      
      * fix runtime tests
      
      * fix test-runtime
      
      Co-authored-by: default avatarthiolliere <gui.thiolliere@gmail.com>
      Co-authored-by: default avatarAndré Silva <123550+andresilva@users.noreply.github.com>
      Co-authored-by: default avatarAndré Silva <andrerfosilva@gmail.com>
      ec98120f
    • dependabot[bot]'s avatar
      Bump async-process from 1.0.1 to 1.1.0 (#3122) · 4636daa7
      dependabot[bot] authored
      
      Bumps [async-process](https://github.com/smol-rs/async-process) from 1.0.1 to 1.1.0.
      - [Release notes](https://github.com/smol-rs/async-process/releases)
      - [Changelog](https://github.com/smol-rs/async-process/blob/master/CHANGELOG.md)
      - [Commits](https://github.com/smol-rs/async-process/compare/v1.0.1...v1.1.0)
      
      Signed-off-by: default avatardependabot[bot] <support@github.com>
      
      Co-authored-by: default avatardependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
      4636daa7
  10. Jul 16, 2021
  11. Jul 15, 2021
  12. Jul 14, 2021
  13. Jul 13, 2021
    • Seun Lanlege's avatar
      Introduce test runner biolerplate (#2609) · ab9c86d5
      Seun Lanlege authored
      
      * adds test-runner boilerplate
      
      * revert to master
      
      * Update node/test/runtime/Cargo.toml
      
      Co-authored-by: default 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: default 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: default avatarAndronik Ordian <write@reusable.software>
      
      * ...
      
      * revert Cargo.lock
      
      * bump cargo.lock
      
      Co-authored-by: default avatarAndronik Ordian <write@reusable.software>
      Co-authored-by: default avatarradupopa2010 <radupopa2010@yahoo.com>
      Co-authored-by: CI system <>
      ab9c86d5
    • Qinxuan Chen's avatar
      Companion for substrate#9197 (#3359) · 41045d89
      Qinxuan Chen authored
      
      * Companion for substrate#9197
      
      Signed-off-by: default avatarkoushiro <koushiro.cqx@gmail.com>
      
      * update Substrate
      
      Co-authored-by: default avatarShawn Tabrizi <shawntabrizi@gmail.com>
      Co-authored-by: parity-processbot <>
      41045d89
  14. Jul 12, 2021
    • Alexander Theißen's avatar
      Companion for #9276: Remove `Filter` impl on `()` (#3420) · 2d102308
      Alexander Theißen authored
      * Switch from () to AllowAllFilter
      
      * Rename AllowAllFilter -> AllowAll
      
      * update Substrate
      
      Co-authored-by: parity-processbot <>
      2d102308
    • 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 <write@reusable.software>
      6994682a
  15. Jul 09, 2021
    • 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 <write@reusable.software>
      Co-authored-by: parity-processbot <>
      d53ec86b
    • 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
  16. Jul 08, 2021
    • 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
    • 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
  17. Jul 07, 2021
  18. Jul 06, 2021
  19. Jul 05, 2021