Skip to content
  1. Sep 16, 2021
    • Chevdor's avatar
      ci: add quick-check with rustfmt (#615) · 6b20f7a2
      Chevdor authored
      
      
      * ci: add quick-check with clippy and rustfmt
      
      * chore: rustfmt round
      
      * chore: set the same rustfmt config than substrate
      
      * chore: fix formatting
      
      * cI: remove clippy
      
      * ci: switch to nightly for the checks
      
      * ci: fix toolchains and naming
      
      * ci: Limit the check to formatting
      
      * chore: fix formatting
      
      * Update .rustfmt.toml
      
      * Update .rustfmt.toml
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      6b20f7a2
    • Andrew Jones's avatar
      Metadata v14 (companion to #3336) (#564) · e3eb3a0a
      Andrew Jones authored
      
      
      * Remove event pallet::metadata attributes
      
      * Add scale-info deps, TypeInfo derives, update call variants
      
      * Update metadata runtime APIs
      
      * Add missing scale_info dependency, update rococo runtime API
      
      * Add missing scale_info dependency
      
      * Remove pushed diener patches
      
      * Cargo.lock
      
      * Add missing scale-info dependencies
      
      * Fixes
      
      * Statemint runtime fixes
      
      * Call struct variant empty matches
      
      * Add missing scale-info dependency
      
      * Fixes
      
      * scale-info 1.0
      
      * cargo update -p xcm
      
      * update lock
      
      * Update Cargo.lock
      
      * update to latest polkadot
      
      * remove rpc_http_threads
      
      https://github.com/paritytech/substrate/pull/9737
      
      * replace task executor with tokio handler
      
      https://github.com/paritytech/substrate/pull/9737
      
      * fix test compilation?
      
      * Update Cargo.lock
      
      * cargo update
      
      * remove unused
      
      * Update substrate and polkadot
      
      * Update test/client/src/lib.rs
      
      Co-authored-by: default avatarShawn Tabrizi <[email protected]>
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      e3eb3a0a
  2. Sep 12, 2021
  3. Aug 28, 2021
    • Gavin Wood's avatar
      Companion for #3629 (XCM v2) (#571) · 9cc27783
      Gavin Wood authored
      * Update .gitignore and bring into line with XCM v2's SendError
      
      * type
      
      * Some work
      
      * Weighed responses
      
      * extra fields to xcm pallet
      
      * Fixes
      
      * Bump
      9cc27783
  4. Aug 12, 2021
  5. Aug 09, 2021
  6. Aug 06, 2021
  7. Aug 05, 2021
  8. Jul 05, 2021
  9. Jun 23, 2021
  10. Jun 16, 2021
  11. Jun 12, 2021
  12. Jun 11, 2021
  13. Jun 08, 2021
    • cheme's avatar
      Compact proof. (#295) · e8b4b364
      cheme authored
      
      
      * compact, need to be made optional and look into/compress child trie
      roots/state.
      
      * proto with child trie support
      
      * Missing set_offchain_storage overload.
      
      * right name
      
      * Ignore offchain indexing in validation function.
      
      * patch trie-db
      
      * decompress from iter
      
      * use compressed proof
      
      * remove wasm blob from proof (no inject plugged yet)
      
      * change lock
      
      * update trie
      
      * change in toml
      
      * Revert "change in toml"
      
      This reverts commit e588583b79e1a64e2a54157b40968aa6b586fbbe.
      
      * use patch to branches
      
      * i
      
      * i:wq
      
      * switch branch
      
      * ii
      
      * ok, needed to patch the runtime by putting substrate patch in polkadot
      project.
      
      * test passing with this conf
      
      * actual lazy code fetch
      
      * patch issue
      
      * Code reorg
      
      * restore commented tests.
      
      * update deps.
      
      * remove polka patch
      
      * fixes
      
      * remove patch
      
      * revert cargo.lock
      
      * cargo update -p sp-trie polkadot-service
      
      * fix collator test (using parent state root).
      
      * Update pallets/parachain-system/src/validate_block/implementation.rs
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      
      * Remove encode_witness test function.
      
      * Update pallets/parachain-system/src/validate_block/implementation.rs
      
      * Fix compilation
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      e8b4b364
  14. May 26, 2021
    • Bastian Köcher's avatar
      Pov recovery for parachains (#445) · 07b3c44b
      Bastian Köcher authored
      
      
      * Start with a failing integration test & some refactorings
      
      * More work
      
      * Make it "work"
      
      * Add `NullConsensus` for the test
      
      * More refactorings
      
      * Move stuff over to its own crate
      
      * Refactorings
      
      * Integrate it into `service` and make the test working
      
      * Docs and some exit condition
      
      * Use the real import queue
      
      * Fix tests
      
      * Update client/pov-recovery/src/active_candidate_recovery.rs
      
      Co-authored-by: default avatarBernhard Schuster <[email protected]>
      
      * Fetch slot duration from the relay chain
      
      * Docs
      
      * Fixes
      
      Co-authored-by: default avatarBernhard Schuster <[email protected]>
      07b3c44b
  15. May 17, 2021
  16. May 10, 2021
    • Bastian Köcher's avatar
      Aura consensus for parachains (#371) · 8accc88e
      Bastian Köcher authored
      
      
      * Update polkadot
      
      * Migrate all uses of MQC heads to merkle proofs
      
      * Mass rename `relay_parent_storage_root`
      
      * Restore parachain-system tests
      
      * Update polkadot and libp2p swarm for testing
      
      * Collapse match into an if let
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      
      * Start with something
      
      * Update Substrate & Polkadot
      
      * Start to make it compile
      
      * Make it compile
      
      * Begin with something
      
      * Yep
      
      * I'm a hacker
      
      * Bring back the builder
      
      * Make it work in some way
      
      * Compile
      
      * Parachains use their own "slot"
      
      * Adds cumulus-pallet-aura
      
      * Wrap AuRa import queue to disable equivocation checking by default
      
      * Pass slot duration
      
      * Check the seal when validating a block
      
      * Adds missing file
      
      * Try to make the seal working
      
      * Fix it
      
      * Some fixes
      
      * Bring in the latest features to cleanup the code
      
      * Update and make it compile
      
      * Improve the import
      
      * Start fixing
      
      * More work
      
      * Fix fix fix
      
      * Make everything compile
      
      * Small cleanups
      
      * Rename and more docs
      
      * Docs
      
      * Fixes fixes fixes
      
      * Update rococo-parachains/src/chain_spec.rs
      
      * Update client/consensus/aura/src/lib.rs
      
      Co-authored-by: default avatarAndré Silva <[email protected]>
      
      * Update client/consensus/aura/src/lib.rs
      
      Co-authored-by: default avatarAndré Silva <[email protected]>
      
      * Update primitives/parachain-inherent/Cargo.toml
      
      Co-authored-by: default avatarAndré Silva <[email protected]>
      
      * Update primitives/parachain-inherent/Cargo.toml
      
      * Update primitives/parachain-inherent/Cargo.toml
      
      * Update primitives/parachain-inherent/Cargo.toml
      
      Co-authored-by: default avatarSergei Shulepov <[email protected]>
      Co-authored-by: default avatarAndré Silva <[email protected]>
      8accc88e
  17. May 02, 2021
  18. Apr 14, 2021
    • Gavin Wood's avatar
      XCM revamp & Ping pallet (#391) · 86f9a991
      Gavin Wood authored
      
      
      * Add spambot
      
      * Fixes
      
      * Add some extra functions to spambot, bump version
      
      * Lock..
      
      * Aggregate HRMP (XCMP/HMP) messages. Payloads for spambot.
      
      * Fix tests, bump Polkadot.
      
      * Fix HMP tests
      
      * Rename Hrmp -> Xcmp for handler/sender
      
      * Use master branch
      
      * Test Xcm message passing & rename away from HMP
      
      * Docs
      
      * Introduce fee payment mechanics into XCM.
      
      * Rename spambot -> ping
      
      * Lock
      
      * XCMP message dispatch system reimagining
      
      - Moved most of the logic into xcm-handler pallet
      - Altered the outgoing XCMP API from push to pull
      - Changed underlying outgoing queue data structures to avoid multi-page read/writes
      - Introduced queuing for incoming messages
      - Introduced signal messages as a flow-control sub-stream
      - Introduced flow-control with basic threshold back-pressure
      - Introduced overall weight limitation on messages executed
      - Additonal alterations to XCM APIs for the new system
      
      * Should process any remaining XCM messages when we're not doing anything else.
      
      * Update API usage and preparation for the big build.
      
      * Some build fixes
      
      * Build fixes
      
      * xcm-handler builds
      
      * Fix warnings
      
      * Docs
      
      * Parachains system builds
      
      * Parachain runtime building
      
      * Fix build
      
      * Introduce transfer_asset specialisation.
      
      * Fixes
      
      * Two-stage upgrade for parachains.
      
      * Fixes
      
      * Fixes
      
      * Updates for message sending.
      
      * Repotting/renaming. Add primitives/utility.
      
      * Remove real-overseer and bump refs
      
      * Configure & document Rococo XCM runtime.
      
      * Add shell runtime, some companion changes for #8589
      
      * Bumps & fixes
      
      * Fix test
      
      * Build fix
      
      * Update pallets/xcmp-queue/src/lib.rs
      
      Co-authored-by: default avatarAmar Singh <[email protected]>
      
      * Make tests compile
      
      * Apply suggestions from code review
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      
      * remove unused
      
      * remove unused event stuff
      
      * Adds proper validation-worker to make integration tests work
      
      * Apply suggestions from code review
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      
      * Apply suggestions from code review
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      
      * import saturating
      
      * remove panic test
      
      Co-authored-by: default avatarRobert Habermeier <[email protected]>
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      Co-authored-by: default avatarAmar Singh <[email protected]>
      Co-authored-by: default avatarShawn Tabrizi <[email protected]>
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      86f9a991
  19. Mar 03, 2021
  20. Feb 27, 2021
    • Bastian Köcher's avatar
      Change the way we store, handle and validate the validation data (#342) · d6bc185e
      Bastian Köcher authored
      Currently validation data is shared by using a well known key between
      the parachain system pallet and the validate block implementation. This
      pr changes this by passing the parachain system directly to the validate
      block implementation to make use of it. Besides that, we also store the
      validation params in some thread local variable to make it inspectable
      by parachain system. This moves the validation of validation data and
      validation params to the parachain system pallet directly, instead of
      having this hidden inside the validate block implementation.
      
      Fixes: https://github.com/paritytech/cumulus/issues/217
      d6bc185e
  21. Feb 11, 2021
  22. Feb 10, 2021
    • Bastian Köcher's avatar
      The great refactor (#325) · 119e0859
      Bastian Köcher authored
      * Move pallets to pallets folder and rename them
      
      * Move genesis file to service
      
      * Rename primitives to primitives-core
      
      * Delete cumulus-runtime
      
      * Move stuff to client folder and rename
      119e0859
  23. Feb 02, 2021
    • Sergey Pepyakin's avatar
      MQC authorization (#308) · 274b3f61
      Sergey Pepyakin authored
      
      
      * MQC auth
      
      Update polkadot
      
      WIP
      
      * Update polkadot
      
      * Silly syntax errors
      
      * Fix typo
      
      * Leave some comments and docs
      
      * Apply suggestions from code review
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      
      * Introduce the MessageQueueChain structure
      
      * Move the HRMP channel relevance check below
      
      * Fix the `receive_hrmp_after_pause` test
      
      * ValidationData is passed by reference
      
      * Replace "to cumulus" with "to the collator"
      
      * Update the test so that they are same as in polkadot
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      274b3f61
  24. Jan 29, 2021
  25. Jan 21, 2021
    • Sergey Pepyakin's avatar
      parachain-system (#296) · 615ac5fe
      Sergey Pepyakin authored
      * rename parachain-{upgrade -> system}
      
      * Merge message-broker into parachain-system
      
      * Remove message-broker and clean up
      
      * Update docs
      
      * Test upward messages sending
      
      And also update the relay-sproof-builder so that it allows to set the
      relay dispatch queue size for the given parachain.
      
      * Test horizontal message sending
      
      * Remove old inherent definitions
      615ac5fe
  26. Jan 19, 2021
  27. Jan 14, 2021
  28. Jan 13, 2021
    • Sergey Pepyakin's avatar
      Inform the PVF with the latest relevant relay chain state (#279) · b424d0f5
      Sergey Pepyakin authored
      
      
      * Update polkadot
      
      * Extend cumulus primitives with some relay chain exports
      
      Follow https://github.com/paritytech/polkadot/pull/2194 to see the
      polkadot PR
      
      * collator: collect the state proof
      
      This commit changes cumulus-collator so that it takes the relay chain
      state at the relay parent and creates a storage proof that contains all
      the required data for PVF.
      
      * parachain-upgrade: use the proofs instead
      
      This change is needed to make cumulus logic to not longer depend on the
      transient validation data. As part of this change, in order to preserve
      the current behavior `code_upgrade_allowed` now is computed on the
      parachain side, rather than provided by polkadot.
      
      Turned out that this requires to know the self parachain id so it was
      added where needed.
      
      * message-broker: use relay state to track limits
      
      this should make sending messages safe from accidentally running over
      the relay chain limits that were previously unknown.
      
      * Update polkadot
      
      So that `relay_storage_root` is available through `ValidationParams`
      
      * Check `relay_storage_root` matches expected
      
      Check that `relay_storage_root` submitted by the collator matches the
      one that we receive in `validate_block` through `ValidationParams`
      
      * Add a missing check for `dmq_mqc_head` while we are at it
      
      * Update polkadot
      
      * Fix tests that use the relay storage root
      
      * Apply suggestions from code review
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      
      * Update message-broker/src/lib.rs
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      
      * Remove unneeded (&_)
      
      * Fix unwraps
      
      * Polish basti's suggestion
      
      * Fix merge
      
      * Bring back the System::can_set_code check
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      b424d0f5
  29. Dec 21, 2020
  30. Dec 17, 2020
    • Shawn Tabrizi's avatar
      Add XCM Handler (#267) · afc50e8a
      Shawn Tabrizi authored
      * initial mock
      
      * integrate xcm-handler into runtime
      
      * expose xcm send error
      
      * oops
      
      * better comment
      afc50e8a
  31. Dec 16, 2020
  32. Dec 15, 2020
    • Sergey Pepyakin's avatar
      Integrate HRMP (#258) · c84c9b6b
      Sergey Pepyakin authored
      
      
      * HRMP message ingestion
      
      * Plumb hrmp_watermark to build_collation
      
      * Plumb hrmp_watermark to ValidationResult
      
      * Plumb hrmp outbound messages
      
      * Implement message-broker part of HRMP
      
      * Kill UPWARD_MESSAGES as well
      
      Otherwise, they will get resent each block
      
      * Add sudo versions for easier testing
      
      * Remove the xcmp module
      
      Not useful for the moment
      
      * Doc for HRMP message handler
      
      * Estimate the weight upper bound for on_finalize
      
      * Remove a redundant type annotation
      
      * fix spelling of a method
      
      * Apply suggestions from code review
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      
      * Deabbreviate dmp and hrmp in the message ingestion type
      
      * Don't use binary_search since it's broken by a following rotate
      
      Instead use the linear search. We can afford linear search here since
      due to limited scalability of HRMP we can only have at most a couple of
      dozens of channels.
      
      * Fix the watermark
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      c84c9b6b
  33. Nov 22, 2020
    • Bastian Köcher's avatar
      Wait for relay chain block import before validatiing a block announcement (#227) · e5b4e8ca
      Bastian Köcher authored
      * Start with something
      
      * Whatever
      
      * Update
      
      * MOARE
      
      * Make cumulus-network compile and tests work
      
      * Update more and fixes
      
      * More stuff
      
      * More fixes
      
      * Make collator build
      
      * Make test almost work
      
      * Remove contracts runtime
      
      * More test work
      
      * Make service compile
      
      * Fix test-service
      
      * Fix test client
      
      * More fixes
      
      * Fix collator test
      
      * Fix network tests (again)
      
      * Make everything compile, finally
      
      * Fix tests
      
      * Write test that should fail
      
      * Add `WaitOnRelayChainBlock`
      
      * Update git versions
      
      * Make it all work
      
      * Update logging
      
      * Switch to provided method for pushing an extrinsic
      
      * Try to debug CI
      
      * Aaaa
      
      * Only use Debug
      
      * Updates
      
      * Use native execution to hopefully make CI happy...
      e5b4e8ca
  34. Nov 20, 2020
  35. Nov 16, 2020
  36. Nov 11, 2020
  37. Nov 09, 2020
  38. Nov 08, 2020
    • Bastian Köcher's avatar
      Update Cumulus for Parachains V1 (#224) · 28338431
      Bastian Köcher authored
      
      
      * Start with something
      
      * Whatever
      
      * Update
      
      * MOARE
      
      * Make cumulus-network compile and tests work
      
      * Update more and fixes
      
      * More stuff
      
      * More fixes
      
      * Make collator build
      
      * Make test almost work
      
      * Remove contracts runtime
      
      * More test work
      
      * Make service compile
      
      * Fix test-service
      
      * Fix test client
      
      * More fixes
      
      * Fix collator test
      
      * Fix network tests (again)
      
      * Make everything compile, finally
      
      * Fix tests
      
      * Update to latest masters
      
      * Remove ignore
      
      * Switch to different branch in polkadot for now
      
      * Update reference
      
      * Make it compile with latest changes
      
      * Update collator/src/lib.rs
      
      Co-authored-by: default avatarRobert Habermeier <[email protected]>
      
      * Update to latest upstream
      
      * Update to latest master
      
      * Fix test
      
      Co-authored-by: default avatarRobert Habermeier <[email protected]>
      28338431
  39. Oct 07, 2020
    • Cecile Tonglet's avatar
      Uniformize tests (#220) · 7b4ea8d8
      Cecile Tonglet authored
      * Initial commit
      
      Forked at: 56753b77
      Parent branch: origin/master
      
      * Copy runtime module from rococo
      
      Forked at: 56753b77
      Parent branch: origin/master
      
      * Also copy dependencies pallets and primitives
      
      Forked at: 56753b77
      Parent branch: origin/master
      
      * WIP
      
      Forked at: 56753b77
      Parent branch: origin/master
      
      * WIP
      
      Forked at: 56753b77
      Parent branch: origin/master
      
      * test-service
      
      * Move integration test
      
      * CLEANUP
      
      Forked at: 56753b77
      Parent branch: origin/master
      
      * Not sure what went wrong...
      
      * WIP
      
      Forked at: 56753b77
      Parent branch: origin/master
      
      * WIP
      
      Forked at: 56753b77
      Parent branch: origin/master
      
      * CLEANUP
      
      Forked at: 56753b77
      Parent branch: origin/master
      
      * fmt
      
      * CLEANUP
      
      Forked at: 56753b77
      Parent branch: origin/master
      
      * CLEANUP
      
      Forked at: 56753b77
      Parent branch: origin/master
      
      * Remove pallet contracts (not used)
      
      * Remove pallet parachain-info and token-dealer (not used)
      
      * Sort dependencies alphabetically
      
      * CLEANUP
      
      Forked at: 56753b77
      Parent branch: origin/master
      
      * CumulusTestNode for testing
      
      * Speed up block generation
      
      * Fix improper shutdown
      
      * rustfmt
      
      * runtime: replace const by storage
      
      * Fix for previous commit
      
      * Remove some generics
      
      * Move generate_genesis_state to cumulus-primitives
      
      * fmt
      
      * Remove message_example
      
      * fixup! Remove message_example
      
      * WIP
      
      Forked at: 56753b77
      Parent branch: origin/master
      
      * Half the solution to previous commit :(
      
      * Revert "Fix for previous commit"
      
      This reverts commit 60010bab6797487093ac8c790b3a536f7ca0895b.
      
      * Revert "runtime: replace const by storage"
      
      This reverts commit c64b3a46f0325a98922015e0cbf3570e2e431774.
      
      Not working for some reason...
      
      * Use helper
      
      Forked at: 56753b77
      Parent branch: origin/master
      
      * WIP
      
      Forked at: 56753b77
      Parent branch: origin/master
      
      * Remove test-primitives
      
      * Revert "Half the solution to previous commit :("
      
      This reverts commit 9a8f89f9f06252198e6405057043c6b313f1aea4.
      
      * Revert "Revert "Half the solution to previous commit :(""
      
      This reverts commit 6a93f0f09d74ccdc3738dd78a777c483427c03ce.
      
      * Test with some extra extrinsics
      
      * WIP
      
      Forked at: 56753b77
      Parent branch: origin/master
      
      * CLEANUP
      
      Forked at: 56753b77
      Parent branch: origin/master
      
      * WIP
      
      Forked at: 56753b77
      Parent branch: origin/master
      
      * WIP
      
      Forked at: 56753b77
      Parent branch: origin/master
      
      * WIP
      
      Forked at: 56753b77
      Parent branch: origin/master
      
      * WIP
      
      Forked at: 56753b77
      Parent branch: origin/master
      
      * WIP
      
      Forked at: 56753b77
      Parent branch: origin/master
      
      * WIP
      
      Forked at: 56753b77
      Parent branch: origin/master
      
      * WIP
      
      Forked at: 56753b77
      Parent branch: origin/master
      
      * CLEANUP
      
      Forked at: 56753b77
      Parent branch: origin/master
      
      * Remove message broker
      7b4ea8d8