- 05 Jul, 2020 1 commit
-
-
Peter Goodspeed-Niklaus authored
* network bridge skeleton * move some primitives around and add debug impls * protocol registration glue & abstract network interface * add send_msgs to subsystemctx * select logic * transform different events into actions and handle * implement remaining network bridge state machine * start test skeleton * make network methods asynchronous * extract subsystem out to subsystem crate * port over overseer to subsystem context trait * fix minimal example * fix overseer doc test * update network-bridge crate * write a subsystem test-helpers crate * write a network test helper for network-bridge * set up (broken) view test * Revamp network to be more async-friendly and not require Sync * fix spacing * fix test compilation * insert side-channel for actions * Add some more message types to AllMessages * introduce a test harness * impl ProvideInherent for InclusionInherent * reduce import churn; correct expect message * move inclusion inherent identifier into primitives It's not clear precisely why this is desired, but it's a pattern I've seen in several places, so I'm going this to be on the safe side. Worst case, we can revert this commit pretty easily. * bump kusama spec_version to placate CI * copy sc_basic_authorship::{ProposerFactory, Proposer} We have from the problem description: > This Proposer will require an OverseerHandle to make requests via. That's next on the plate. * use polkadot custom proposer instead of basic-authorship one * add some tests * ensure service compiles and passes tests * fix typo * fix service-new compilation * Subsystem test helpers send messages synchronously * remove smelly action inspector * remove superfluous let binding * fix warnings * add license header * empty commit; maybe github will notice the one with changes * Update node/network/bridge/src/lib.rs Co-authored-by:
Peter Goodspeed-Niklaus <coriolinus@users.noreply.github.com> * add sanity check to only include valid inherents * stub: encapsulate block production mechanics instead of copying them The goal is to end up with something like what's in validation::block_production::*, which encapsulates basic block production mechanics. This is a better idea than just straight-up copying those mechanics. * partial implementation of propose fn Doesn't actually compile yet; need to bring in some other commits to ensure ProvisionerMessage is a thing, and also figure out how to get the block hash given the current context. * fix compilation * clear a few more compile errors * finish fn propose * broken: add timeout to proposal * add timeout to proposal * guide: provisioner is responsible for selecting parachain candidates * implement ProvisionerMessage::RequestInherentData & update fn propose * impl CreateProposer::init; clean up * impl std::error::Error for Error * document error-handling rationale * cause polkadot-service-new to compile correctly * Move potentially-blocking call from fn init -> fn propose This means that we can wrap the delayed call into the same timeout check used elsewhere. * document struct Proposer * extract provisioner data fetch This satisfies two requirements: - only applies the timeout to actually fetching the provisioner data, not to constructing the block after - simplifies the problem of injecting default data if we could not get the real provisioner data in time. Co-authored-by:
Robert Habermeier <rphmeier@gmail.com> Co-authored-by:
Gavin Wood <gavin@parity.io>
-
- 03 Jul, 2020 1 commit
-
-
Gavin Wood authored
* Switch branch * Return chain ops parts in new_chain_ops * Remove where param from new_chain_ops * Add task manager to new_chain_ops return * Revert branch switch * Revert "Revert branch switch" This reverts commit 7c7900c0. * network/test/src/lib: Adjust network worker polling Companion for https://github.com/paritytech/substrate/pull/6552 . * Fix adder parachain * Fix collator tests * Revert branch switch * Bump everything - Remove old migration code - Reduce deposit requried for westend * Reapply fixes * Bump locl * Fix for #6550 * Fix message Co-authored-by:
Ashley Ruglys <ashley.ruglys@gmail.com> Co-authored-by:
Max Inden <mail@max-inden.de>
-
- 01 Jul, 2020 1 commit
-
-
Bastian Köcher authored
* Downward messages, the front-end. * Move types around to make them accessible from Parachains * Fix compilation * Fix branch * Make it compile for Cumulus * Update the branch names * Add default generic parameter * Implement `Partialeq` * Move upward messages into the `ValidationResult` * Support disabling of the runtime api * Update branch * Adds support for handling downward messages * Implement sending XCMP messages as up/downward messages * service: update to latest ServiceBuilder changes * Make it compile * Initial commit Forked at: b2c9c149 Parent branch: origin/master * Update substrate branch to cecton-update-polkadot-substrate * Update substrate & polkadot to cumulus-branch * Reset branch * Update primitives/src/parachain.rs Co-authored-by:
Robert Habermeier <rphmeier@gmail.com> * Update runtime/common/src/parachains.rs Co-authored-by:
Robert Habermeier <rphmeier@gmail.com> * Update runtime/common/src/parachains.rs Co-authored-by:
Robert Habermeier <rphmeier@gmail.com> * Minor fixes * Fix wasm build Co-authored-by:
Gav Wood <gavin@parity.io> Co-authored-by:
André Silva <andre.beat@gmail.com> Co-authored-by:
Cecile Tonglet <cecile.tonglet@cecton.com> Co-authored-by:
Robert Habermeier <rphmeier@gmail.com>
-
- 30 Jun, 2020 1 commit
-
-
Peter Goodspeed-Niklaus authored
* impl ProvideInherent for InclusionInherent * reduce import churn; correct expect message * move inclusion inherent identifier into primitives It's not clear precisely why this is desired, but it's a pattern I've seen in several places, so I'm going this to be on the safe side. Worst case, we can revert this commit pretty easily. * bump kusama spec_version to placate CI * add license header * empty commit; maybe github will notice the one with changes * add sanity check to only include valid inherents
-
- 26 Jun, 2020 1 commit
-
-
Gavin Wood authored
* Companion for #6503 * Remove old filtering * Bump tx version * Bump version * Bump
-
- 23 Jun, 2020 1 commit
-
-
Gavin Wood authored
* Update staking reward curve for pre-parachain situation. * Bump runtime. * Bump versions
-
- 20 Jun, 2020 1 commit
-
-
Peter Goodspeed-Niklaus authored
* add signed wrapper, typedef SignedStatement * typedef SignedAvailabilityBitfield * implement Signed wrapper This is strictly an addition as of this commit; nothing is yet changed in existing behavior. * inline getters, remove review comment * move EncodeAs, Signed from node::primitives to primitives::parachain * Refactor SignedAvailabilityBitfield to use Signed * don't double-encode real payload This isn't an ideal solution, because it depends on the implementation details of how SCALE encodes tuples, but OTOH that behavior seems unlikely to change anytime soon. * fix build errors * cause the runtime to build properly with the new changes Not sure why cargo check didn't catch this earlier; oh well. * fix runtime tests and separate SignedStatement from SignedFullStatement * better explain why CompactStatement exists Co-authored-by:
Robert Habermeier <rphmeier@gmail.com> Co-authored-by:
Robert Habermeier <rphmeier@gmail.com>
-
- 19 Jun, 2020 1 commit
-
-
Gavin Wood authored
-
- 18 Jun, 2020 1 commit
-
-
asynchronous rob authored
* add availability bitfield types to primitives * begin inclusion module * use GitHub issue link for limitation * fix some compiler errors * integrate validators into initializer * add generic signing context * make signing-context more generic * fix issues with inclusion module * add TODO * guide: add validators and session index to inclusion * guide: add session index to change notification * implement session change logic * add BackedCandidate type * guide: refine inclusion pipeline * guide: rename group_on to group_validators * guide: add check about collator for parathread * guide: add last_code_upgrade to paras and use in inclusion * implement Paras::last_code_upgrade * implement most checks in process_candidates * make candidate receipt structs more generic * make BackedCandidate struct more generic * use hash param, not block number * check that candidate is in context of the parent block * include inclusion module in initializer * implement enact-candidate * check that only occupied cores have bits set * finish implementing bitfield processing * restructure consistency checks on candidates * make some more primitives generic * signature checking logic for backed candidates * finish implementing process_candidates * implement collect_pending * add some trait implementations to primitives * implement InclusionInherent and squash warnings * test bitfield signing checks * rename parachain head to para_head * fix note_new_head bug in paras * test bitfield enactment in inclusion * helpers for candidate checks * add test for most candidate checks * add test for backing setting storage * test session change logic * remove extraneous type parameter * remove some allow(unused)s * extract threshold computation to const fn * remove some more allow(unused)s * improve doc * add debug assertion * fix primitive test compilation * tag unanimous variant as unused
-
- 17 Jun, 2020 2 commits
-
-
asynchronous rob authored
* introduce polkadot-node-primitives * guide: change statement distribution message types * guide: remove variant from `CandidateSelectionMessage` * add a few more message types * add TODOs * Almost all messages * NewBackedCandidate notification * Formatting * Use AttestedCandidate as BackedCandidate * Update node/primitives/src/lib.rs Co-authored-by:
Peter Goodspeed-Niklaus <coriolinus@users.noreply.github.com> * Fix the tests * Bring in types from #1242 * Adds network bridge messages * More message types from doc * use fn pointer type * Fixes from the review * Add missing Runtime subsystem message * rename to CandidateValidationMessage and fix tests Co-authored-by:
Fedor Sakharov <fedor.sakharov@gmail.com> Co-authored-by:
Peter Goodspeed-Niklaus <coriolinus@users.noreply.github.com>
-
Gavin Wood authored
* Rename old labels. * Bump runtimes * Bump versions * Bump lock
-
- 16 Jun, 2020 1 commit
-
-
Gavin Wood authored
-
- 12 Jun, 2020 2 commits
-
-
Gavin Wood authored
* Bump versions, tweak deposit costs. * Version * Lock * Make test work ok when numbers are not round. * Bump Substrate * Lock
- 10 Jun, 2020 1 commit
-
-
Gavin Wood authored
* Bump Substrate again. * update kusama runtmie for ensure origin * update polkadot runtime for ensure origin * fix imports * root only available for runtime benchmarks * Fix lock file * Bump Substrate * Update lock * Remove questionable feature-gating. Co-authored-by:
Shawn Tabrizi <shawntabrizi@gmail.com>
-
- 09 Jun, 2020 2 commits
-
-
Gavin Wood authored
-
Gavin Wood authored
* Bump versions. * Update lock
-
- 08 Jun, 2020 2 commits
-
-
Gavin Wood authored
-
Gavin Wood authored
* Fix for new Substrate * Fix * Remove Utility constraint in NonTransfer * Bump * Fixes * Allow limited utilities in proxy filters. * Fix * Add SudoBalances proxy restrictions
-
- 04 Jun, 2020 1 commit
-
-
Gavin Wood authored
* Introduce generalised proxies to polkadot * Introduce proxy to westend * Add proxy to Kusama. * Fix
-
- 01 Jun, 2020 1 commit
-
-
Gavin Wood authored
* Identity * Bump spec * Update runtime/polkadot/src/lib.rs Co-authored-by:
kaichao <kaichaosuna@gmail.com> * Fix runtime * Bump runtimes Co-authored-by:
kaichao <kaichaosuna@gmail.com>
-
- 28 May, 2020 1 commit
-
-
Gavin Wood authored
* Bump * Bump * Bump
-
- 26 May, 2020 2 commits
-
-
Gavin Wood authored
* Test CC1 spec * Adaptive default chainspec * Strip -pre * Update to next CC1 iteration * Raw chainspec
-
Gavin Wood authored
* Update claim statements * Update URLs * Minor tweak to make enum agree with URL * final html multihashes * New hashes * Version * updated SAFT statement hash * Update runtimes; this relies on substrate #6131 * Bump * Share transaction filterer and fix Kusama * Warning * Gah! * Tidy * Westend fixes * Westend fix * Tweak constants * Implement TCF stuff * Fix * Warning * 15 minute lookahead * 15 minute lookahead in Polkadot * update max transactions * Enable utility, disable vested_transfer * Update runtime/common/src/lib.rs Co-authored-by:
Tomasz Drwięga <tomusdrw@users.noreply.github.com> * Filter calls for validate unsigned also * Deduplicate * Fix * Introduce Polkadot (mainnet) chainspec * Fix naming. * Enable indices and fix comment. * Fix compilation * Enable indices and fix comment. * polkadot: babe: enable secondary VRF slots * Test JSON * Allow set_heads * Fix * Raw chain spec added Co-authored-by:
keorn <github@i.keorn.org> Co-authored-by:
NikVolf <nikvolf@gmail.com> Co-authored-by:
Tomasz Drwięga <tomusdrw@users.noreply.github.com> Co-authored-by:
Tomasz Drwięga <tomasz@parity.io> Co-authored-by:
André Silva <andre.beat@gmail.com>
-
- 16 May, 2020 1 commit
-
-
Gavin Wood authored
* Introduce mandatory statement signing into claims * Introduce SignedExtension * Tests passing * Bump runtime version * Bump version, fix test * Test for validate * Another couple of tests * Enable PrevalidateAttests on Polkadot * Enable PrevalidateAttests on Polkadot * Fix build * Fixes * More fixes * Fix bench tests * Fix & test Preclaim clobbering. * Fix for errant claim logic * Add test * Update tests, always use Vec as input * mint_claim can add signature, some_benchmarks * Add claim with statement test * finish benchmarks * put the correct number of claims with benchmarks * fix compiler warning * Update weights * Weight comments for validation Co-authored-by:
Shawn Tabrizi <shawntabrizi@gmail.com>
-
- 06 May, 2020 1 commit
-
-
André Silva authored
* grandpa: report equivocations on all runtimes * runtime: fix test-runtime compilation * runtime: enable historical session manager on all runtimes * runtime: fix indentation * runtime: use strong key types in KeyOwnerProofSystem definitions * update substrate * bump spec_version of runtimes
-
- 05 May, 2020 1 commit
-
-
Gavin Wood authored
-
- 29 Apr, 2020 1 commit
-
-
Gavin Wood authored
* Bump Westend runtime version * Bump Substrate * Prep for release of 0.7.32 * Update lock
-
- 28 Apr, 2020 1 commit
-
-
Nikolay Volf authored
-
- 27 Apr, 2020 1 commit
-
-
Nikolay Volf authored
* add storage_append * Bump versions Co-authored-by:
Gav Wood <gavin@parity.io>
-
- 17 Apr, 2020 1 commit
-
-
Bastian Köcher authored
* Release 0.7.30 * Update Substrate & libp2p
-
- 16 Apr, 2020 1 commit
-
-
Fedor Sakharov authored
* Adds an offchain call to submit double vote reports * Some tweaks * Remove unnecessary IdentifyAccount impls * Adds ValidateDoubleVoteReports to test runtime * sp-application-crypto is only a dev dependency
-
- 14 Apr, 2020 2 commits
-
-
Bastian Köcher authored
* Release 0.7.29 * Update `Cargo.lock`
-
ddorgan authored
* Initial draft * More work * Build * Docs * Insert westend keys * Add badBlock to fork from old chain * Updated spec to reset westend * Use raw spec * Fix spec format and use westend2 for both id's * Correct public key for bootnode 3 * Build * Extra space * Fix build * Lock * Update lock * Fixes * Fix for he startup text * Bump Co-authored-by:
Gav Wood <gavin@parity.io>
-
- 13 Apr, 2020 1 commit
-
-
asynchronous rob authored
* use stronger types for HeadData and ValidationCode in runtime * fix weird debug compile error * fix runtime build * update invocations invalidation.rs * fix tests
-
- 06 Apr, 2020 1 commit
-
-
asynchronous rob authored
* upgrade primitives to allow changing validation function * set up storage schema for old parachains code * fix compilation errors * fix test compilation * add some tests for past code meta * most of the runtime logic for code upgrades * implement old-code pruning * add a couple tests * clean up remaining TODOs * add a whole bunch of tests for runtime functionality * remove unused function * fix runtime compilation * extract some primitives to parachain crate * add validation-code upgrades to validation params and result * extend validation params with code upgrade fields * provide maximums to validation params * port test-parachains * add a code-upgrader test-parachain and tests * fix collator tests * move test-parachains to own folder to work around compilation errors * fix test compilation * update the Cargo.lock * fix parachains tests * remove dbg! invocation * use new pool in code-upgrader * bump lockfile * link TODO to issue
-
- 03 Apr, 2020 1 commit
-
-
Bastian Köcher authored
* Ensure that table router is always build This pr ensures that the table router is always build, aka the future is resolved. This is important, as the table router internally spawns tasks to handle gossip messages. Handling gossip messages is not only required on parachain validators, but also on relay chain validators to receive collations. Tests are added to ensure that the assumptions hold. * Fix compilation * Switch to closures * Remove empty line * Revert "Remove empty line" This reverts commit a6c19438. * Revert "Switch to closures" This reverts commit b989c303. * Hybrid approach * Rename test * Make trait crate local
-
- 01 Apr, 2020 2 commits
-
-
Bastian Köcher authored
Up to now consensus instances used the main channel to communicate with the background network worker. This lead to a race condition when sending a local collation and dropping the router before driving the send local collation future until it is finished. This pr changes the communication between worker and the instances to use their own channels. This has the advantage that we don't need an extra `DropConsensusNetworking` message as the network is dropped automatically when the last sender is dropped.
-
Gavin Wood authored
* Fixes for democracy using Scheduler * Revert branch change
-
- 30 Mar, 2020 1 commit
-
-
Bastian Köcher authored
-