1. Jul 08, 2020
    • asynchronous rob's avatar
      Implement PoV Distribution Subsystem (#1344) · b651e4af
      asynchronous rob authored
      * introduce candidatedescriptor type
      
      * add PoVDistribution message type
      
      * loosen bound on PoV Distribution to account for equivocations
      
      * re-export some types from the messages module
      
      * begin PoV Distribution subsystem
      
      * remove redundant index from PoV distribution
      
      * define state machine for pov distribution
      
      * handle overseer signals
      
      * set up control flow
      
      * remove `ValidatorStatement` section
      
      * implement PoV fetching
      
      * implement distribution logic
      
      * add missing `
      
      * implement some network bridge event handlers
      
      * stub for message processing, handle our view change
      
      * control flow for handling messages
      
      * handle `awaiting` message
      
      * handle any incoming PoVs and redistribute
      
      * actually provide a subsystem implementation
      
      * remove set-builder notation
      
      * begin testing PoV distribution
      
      * test that we send awaiting messages only to peers with same view
      
      * ensure we distribute awaited PoVs to peers on view changes
      
      * test that peers can complete fetch and are rewarded
      
      * test some reporting logic
      
      * ensure peer is reported for flooding
      
      * test punishing peers diverging from awaited protocol
      
      * test that we eagerly complete peers' awaited PoVs based on what we receive
      
      * test that we prune the awaited set after receiving
      
      * expand pov-distribution in guide to match a change I made
      
      * remove unneeded import
      b651e4af
  2. Jul 06, 2020
    • asynchronous rob's avatar
      Implement the Statement Distribution Subsystem (#1326) · 8348cc4c
      asynchronous rob authored
      * set up data types and control flow for statement distribution
      
      * add some set-like methods to View
      
      * implement sending to peers
      
      * start fixing equivocation handling
      
      * Add a section to the statement distribution subsystem on equivocations and flood protection
      
      * fix typo and amend wording
      
      * implement flood protection
      
      * have peer knowledge tracker follow when peer first learns about a candidate
      
      * send dependents after circulating
      
      * add another TODO
      
      * trigger send in one more place
      
      * refactors from review
      
      * send new statements to candidate backing
      
      * instantiate active head data with runtime API values
      
      * track our view changes and peer view changes
      
      * apply a benefit to peers who send us statements we want
      
      * remove unneeded TODO
      
      * add some comments and improve Hash implementation
      
      * start tests and fix `note_statement`
      
      * test active_head seconding logic
      
      * test that the per-peer tracking logic works
      
      * test per-peer knowledge tracker
      
      * test that peer view updates lead to messages being sent
      
      * test statement circulation
      
      * address review comments
      
      * have view set methods return references
      8348cc4c
  3. Jul 05, 2020
    • Peter Goodspeed-Niklaus's avatar
      implement custom proposer (#1320) · 69ce9ff3
      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: default avatarPeter Goodspeed-Niklaus <[email protected]>
      
      * 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: default avatarRobert Habermeier <[email protected]>
      Co-authored-by: default avatarGavin Wood <[email protected]>
      69ce9ff3
  4. Jul 03, 2020
  5. Jul 01, 2020
  6. Jun 30, 2020
    • asynchronous rob's avatar
      Implement Network Bridge (#1280) · eaae8653
      asynchronous rob 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
      
      * 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
      
      * Update node/network/bridge/src/lib.rs
      
      Co-authored-by: default avatarPeter Goodspeed-Niklaus <[email protected]>
      
      * fix compilation
      
      Co-authored-by: default avatarPeter Goodspeed-Niklaus <[email protected]>
      eaae8653
  7. Jun 26, 2020
  8. Jun 23, 2020
  9. Jun 19, 2020
  10. Jun 17, 2020
  11. Jun 16, 2020
  12. Jun 12, 2020
  13. Jun 11, 2020
  14. Jun 10, 2020
    • Gavin Wood's avatar
      v0.8.7 (#1222) · 32a791ee
      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: default avatarShawn Tabrizi <[email protected]>
      32a791ee
  15. Jun 09, 2020
  16. Jun 08, 2020
  17. Jun 05, 2020
  18. Jun 04, 2020
  19. Jun 02, 2020
    • asynchronous rob's avatar
      New parachain runtime skeleton (#1158) · 217083a9
      asynchronous rob authored
      * file structure and initializer skeleton
      
      * ensure session changes happen before initialization
      
      * add a couple tests for initializer flow
      
      * integrate with session handling
      
      * configuration update logic
      
      * configuration methods
      
      * move test mock to its own module
      
      * integrate configuration into initializer
      
      * add note about initialization order
      
      * integrate configuration module into mock
      
      * add some tests for config module
      
      * paras module storage
      
      * implement paras session change operation
      
      * amend past code pruning to fully cover acceptance period
      
      * update guide again
      
      * do pruning of historical validation code
      
      * add weight to initialization
      
      * integrate into mock & leave notes for next session
      
      * clean up un-ended sentence
      
      * alter test to account for double index in past code meta
      
      * port over code-at logic test
      
      * clarify checking for conflicting code upgrades
      
      * add genesis for paras, include in mock, ensure incoming paras are processed
      
      * note on return value of `validation_code_at`
      
      * implement paras routines from implementor's guide
      
      * bring over some existing tests and begin porting
      
      * port over code upgrade tests
      
      * test parachain registration
      
      * test code_at with intermediate block
      
      * fix warnings
      
      * clean up docs and extract to separate struct
      
      * adjust implementor's guide to include replacementtimes
      
      * kill stray println
      
      * rename expected_at to applied_after
      
      * rewrite ParaPastCodeMeta to avoid reversal
      
      * clarify and test interface of validation_code_at
      
      * make FutureCode optional
      
      * rename do_old_code_pruning
      
      * add comment on Option<()> to answer FAQ
      
      * address some more grumbles
      217083a9
    • Fedor Sakharov's avatar
      Overseer (#1152) · 162486cd
      Fedor Sakharov authored
      
      
      * Initial commit
      
      * Licenses, spaces, docs
      
      * Add a spawner
      
      * Watch spawned subsystems with a FuturesUnordered
      
      * Move the types around a bit
      
      * Suggested fixes by Max
      
      * Add a handler to talk to the Overseer
      
      * FromOverseer and ToOverseer msgs and stopping
      
      * Docs and return errors
      
      * Dont broadcast, have add a from field to messages
      
      * Allow communication between subsystems and outside world
      
      * A message with a oneshot to send result example
      
      * Remove leftover can_recv_msg
      
      * Remove from field from messages
      
      * Dont be generic over stuff
      
      * Gather messages with StreamUnordered
      
      * Fix comments and formatting
      
      * More docs fixes and an example
      
      * Apply suggestions from code review
      
      Co-authored-by: default avatarRobert Habermeier <[email protected]>
      
      * Fixes from review
      
      Move function from impl block.
      Do not panic but resolve with errors if spawner fails or subsystem
      resolves.
      
      * Dropping a handler results in a flaky test
      
      Co-authored-by: default avatarRobert Habermeier <[email protected]>
      162486cd
  20. Jun 01, 2020
  21. May 28, 2020
  22. May 26, 2020
    • Gavin Wood's avatar
      Chain Candidate One: Final changes (#1155) · 57b3d36b
      Gavin Wood authored
      * Test CC1 spec
      
      * Adaptive default chainspec
      
      * Strip -pre
      
      * Update to next CC1 iteration
      
      * Raw chainspec
      57b3d36b
    • Gavin Wood's avatar
      Prepare for final genesis (#1131) · 848e1a89
      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: default avatarTomasz Drwięga <[email protected]>
      
      * 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: default avatarkeorn <[email protected]>
      Co-authored-by: default avatarNikVolf <[email protected]>
      Co-authored-by: default avatarTomasz Drwięga <[email protected]>
      Co-authored-by: default avatarTomasz Drwięga <[email protected]>
      Co-authored-by: default avatarAndré Silva <[email protected]>
      848e1a89
  23. May 16, 2020
    • Gavin Wood's avatar
      Extra requirements for claimants (#1091) · d8328043
      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: default avatarShawn Tabrizi <[email protected]>
      d8328043
  24. May 05, 2020
  25. Apr 29, 2020
    • Gavin Wood's avatar
      Prep v0.7.32 (#1056) · b2c024f3
      Gavin Wood authored
      * Bump Westend runtime version
      
      * Bump Substrate
      
      * Prep for release of 0.7.32
      
      * Update lock
      b2c024f3
  26. Apr 28, 2020
  27. Apr 27, 2020
  28. Apr 17, 2020
  29. Apr 14, 2020
    • Bastian Köcher's avatar
      Release 0.7.29 (#998) · 13ec3023
      Bastian Köcher authored
      * Release 0.7.29
      
      * Update `Cargo.lock`
      v0.7.29
      13ec3023
    • ddorgan's avatar
      Westend Mark II (#983) · 20cb15d0
      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: default avatarGav Wood <[email protected]>
      20cb15d0
  30. Apr 13, 2020
    • pscott's avatar
      Use tempdir for tests (#993) · d765720c
      pscott authored
      
      
      * Use tempdir for tests
      
      * Rename tmp to tempdir
      
      * Update Cargo.lock
      
      * Update expect error message in run_command_and_kill
      
      * Call with .path() rather than creating an string slice
      
      * Call tempdir with arg instead of args
      
      * Update tests/purge_chain_works.rs
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      d765720c
  31. Apr 07, 2020
    • Cecile Tonglet's avatar
      Update cli to new sc-cli API (#935) · bee86bba
      Cecile Tonglet authored
      * Initial commit
      
      Forked at: 77de8b91
      Parent branch: origin/master
      
      * Switch substrate to branch cecton-the-revenge-of-the-cli
      
      * Adapting code
      
      * Update Cargo.lock
      
      * Adapting code
      
      * Adapt more code
      
      * Implement force_kusama parameter
      
      * Revert dependency update
      
      * Adapt code to use ref to SubstrateCli object
      
      * Updated to latest version
      
      * Updated with latest changes
      
      * Bump spec vesion
      
      * Fixed tests
      
      * WIP
      
      Forked at: 77de8b91
      Parent branch: origin/master
      
      * More fixes
      
      * Cargo.lock
      
      * Updated code
      
      * Fixed and adapt
      
      * Fixed dependency issue with wasm
      
      * Adapted code
      
      * Revert branch change
      
      * Cargo.lock
      
      * Cargo.lock
      
      * Adapt code
      
      * Clean-up
      
      * More clean-up
      
      * Cargo.lock
      bee86bba
  32. Apr 06, 2020
    • asynchronous rob's avatar
      Upgradeable validation functions (#918) · ed2c4cab
      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
      ed2c4cab
  33. Apr 01, 2020