1. Apr 01, 2021
    • Tomasz Drwięga's avatar
      Merkle Mountain Range & BEEFY integration (#2101) · 5b77a898
      Tomasz Drwięga authored
      
      
      * Switch branch.
      
      * Implement basic MMR leaf.
      
      * Revert "Switch branch."
      
      This reverts commit 7f4d41c67f27ca560c53fc63fd3bd06ac182403c.
      
      * Bump substrate.
      
      * Integrate BEEFY.
      
      Bump all.
      
      Fix missing imports.
      
      * Use beefy pallet to get authorities.
      
      * Bump BEEFY repo.
      
      * Use next authority set instead of the current one.
      
      * Start BEEFY service.
      
      * Fix BEEFY start up.
      
      * Cache BEEFY authority set.
      
      * Add BEEFY ValidatorSetId to MMR
      
      * Fix code.
      
      * Apply suggestions from code review
      
      Co-authored-by: default avatarAndré Silva <[email protected]>
      Co-authored-by: default avatarHernando Castano <[email protected]>
      
      * Review grumbles.
      
      * Update beefy repo.
      
      * Work-around missing protocol.
      
      * Revert "Work-around missing protocol."
      
      This reverts commit 0a6257a8bccc1c67e966898cdedc408c6469ffd6.
      
      * Add beefy peers set config.
      
      * Expose storage of BEEFY.
      
      * Uncompress BEEFY keys for merkle tree.
      
      * Update ordering.
      
      * Switch to branch.
      
      * Bump deps.
      
      * Switch to custom beefy.
      
      * Add MMR RuntimeApi and custom rpc.
      
      * Add set length details.
      
      * Fix compilation.
      
      * Expose MmrLeaf storage.
      
      * Expose MmrLeaf storage.
      
      * Don't use session handler, and rather compute & cache beefy details on call.
      
      * Don't use session handler, and rather compute & cache beefy details on call.
      
      * Fixes.
      
      * Update Cargo.lock.
      
      * Switch back to master.
      
      * Update lockfile.
      
      * Fix xcm print issue.
      
      * Cargo.lock.
      
      * Use master branch.
      
      * Remove extra dep.
      
      * Fix tests.
      
      * Update Cargo.lock
      
      * Add BEEFY & MMR to westend.
      
      * Implement session keys migration.
      
      * Update testnet script.
      
      * start BEEFY for all node types
      
      * Update Cargo.lock
      
      * fix Cargo.toml
      
      * resolve another merge conflict
      
      * add Westend BEEFY keys
      
      * Apply suggestions from code review
      
      Co-authored-by: default avatarHernando Castano <[email protected]>
      
      * Update BEEFY.
      
      * Add Rococo BEEFY keys
      
      * resolve merge issue
      
      * fix pallet indices
      
      * fix Westend OldSessionKey
      
      * remove unused imports in Westend runtime
      
      * Fix compilation for Westend.
      
      * address review
      
      * start BEEFY gadget conditionally
      
      * address review again
      
      * fix typo
      
      * remove duplicate
      
      * remove another duplicate
      
      * well
      
      * add missing stuff
      
      * cleanup Cargo.toml files
      
      - revert unnecessary changes
      - add missing /std dependencies
      - remove unused dependencies
      
      * runtime: remove unused structs from rococo runtime
      
      * node: cleanup service
      
      Co-authored-by: default avatarAndré Silva <[email protected]>
      Co-authored-by: default avatarHernando Castano <[email protected]>
      Co-authored-by: default avataradoerr <[email protected]>
      Co-authored-by: default avatarAndré Silva <[email protected]>
      5b77a898
    • asynchronous rob's avatar
      Node-side subsystems for Disputes (#2566) · ccfabaa0
      asynchronous rob authored
      * dispute subsystem files
      
      * rename
      
      * fix linkcheck
      
      * flesh out section README
      
      * coordinator schema
      
      * DisputeCoordinatorMessage
      
      * stub & coordinator protocol
      
      * dispute coordinator
      
      * add some more message fields
      
      * move links to bottom
      
      * dispute participation
      
      * Cleen It Up !
      
      * runtime: store candidate receipts in dispute state
      
      yeah, this is a little heavier. why are you reading this?
      
      * Revert "runtime: store candidate receipts in dispute state"
      
      This reverts commit 51c10bfd4d866e287e6bd88f317ed57ed987eaee.
      
      * add dispute availability statement type and prepare for availability
      
      * add 'spam slots' to disputes runtmie
      
      * return Spam Slots info from runtime
      
      * rework `ImportStatement` to `ImportStatements`
      
      * some more methods for dispute coordinator
      
      * candidates-included runtime API
      
      * algo for providing disputes to runtime.
      
      * handle signing with coordinator
      
      * dispute coordinator chain ops
      
      * remove dead file
      
      * remove keystore from dispute participation
      
      * adjust ApprovedAncestor to return the necssary data
      
      * discuss how approved ancestor and determine undisputed chain are used together
      
      * add TODO
      
      * initiate disputes from approval voting
      
      * route statements from candidate backing and approval voting
      
      * fix guide build
      ccfabaa0
  2. Mar 31, 2021
  3. Mar 30, 2021
  4. Mar 29, 2021
  5. Mar 28, 2021
    • Shawn Tabrizi's avatar
      Emit an Event for Random Block Selected in Auction (#2740) · a6fd8f78
      Shawn Tabrizi authored
      * Update auctions.rs
      
      * Update auctions.rs
      a6fd8f78
    • asynchronous rob's avatar
      Split NetworkBridge and break cycles with Unbounded (#2736) · 8ebbe19d
      asynchronous rob authored
      
      
      * overseer: pass messages directly between subsystems
      
      * test that message is held on to
      
      * Update node/overseer/src/lib.rs
      
      Co-authored-by: default avatarPeter Goodspeed-Niklaus <[email protected]>
      
      * give every subsystem an unbounded sender too
      
      * remove metered_channel::name
      
      1. we don't provide good names
      2. these names are never used anywhere
      
      * unused mut
      
      * remove unnecessary &mut
      
      * subsystem unbounded_send
      
      * remove unused MaybeTimer
      
      We have channel size metrics that serve the same purpose better now and the implementation of message timing was pretty ugly.
      
      * remove comment
      
      * split up senders and receivers
      
      * update metrics
      
      * fix tests
      
      * fix test subsystem context
      
      * use SubsystemSender in jobs system now
      
      * refactor of awful jobs code
      
      * expose public `run` on JobSubsystem
      
      * update candidate backing to new jobs & use unbounded
      
      * bitfield signing
      
      * candidate-selection
      
      * provisioner
      
      * approval voting: send unbounded for assignment/approvals
      
      * async not needed
      
      * begin bridge split
      
      * split up network tasks into background worker
      
      * port over network bridge
      
      * Update node/network/bridge/src/lib.rs
      
      Co-authored-by: default avatarAndronik Ordian <[email protected]>
      
      * rename ValidationWorkerNotifications
      
      Co-authored-by: default avatarPeter Goodspeed-Niklaus <[email protected]>
      Co-authored-by: default avatarAndronik Ordian <[email protected]>
      8ebbe19d
    • ordian's avatar
      approval-distribution: limit the amount of assignments on unify (#2737) · 6f464a36
      ordian authored
      
      
      * approval-distribution: limit the amount of packets on unify
      
      * guide: fix a typo
      
      * compilation fix
      
      * grammar
      
      * Update roadmap/implementers-guide/src/node/approval/approval-distribution.md
      
      Co-authored-by: default avatarDavid <[email protected]>
      
      * more grammar
      
      * propagate only local assignments/approvals after a certain depth
      
      * increase the threshold
      
      * guides update
      
      Co-authored-by: default avatarDavid <[email protected]>
      6f464a36
    • ordian's avatar
      approval-voting: more spans and metrics (#2742) · 171fc699
      ordian authored
      * approval-voting: more spans and metrics
      
      * s/db/approval db
      171fc699
    • Pierre Krieger's avatar
      Call NetworkService::add_known_address before sending a request (#2726) · e3dc9024
      Pierre Krieger authored
      * Call NetworkService::add_known_address before sending a request
      
      * Better doc
      
      * Update Substrate
      
      * Update Substrate
      
      * Restore the import 🤷
      
      ‍♀️ I don't know why it compiles locally
      
      * imports correctly
      
      Co-authored-by: default avatarRobert Habermeier <[email protected]>
      e3dc9024
    • asynchronous rob's avatar
      Overseer: subsystems communicate directly (#2227) · 5952e790
      asynchronous rob authored
      
      
      * overseer: pass messages directly between subsystems
      
      * test that message is held on to
      
      * Update node/overseer/src/lib.rs
      
      Co-authored-by: default avatarPeter Goodspeed-Niklaus <[email protected]>
      
      * give every subsystem an unbounded sender too
      
      * remove metered_channel::name
      
      1. we don't provide good names
      2. these names are never used anywhere
      
      * unused mut
      
      * remove unnecessary &mut
      
      * subsystem unbounded_send
      
      * remove unused MaybeTimer
      
      We have channel size metrics that serve the same purpose better now and the implementation of message timing was pretty ugly.
      
      * remove comment
      
      * split up senders and receivers
      
      * update metrics
      
      * fix tests
      
      * fix test subsystem context
      
      * fix flaky test
      
      * fix docs
      
      * doc
      
      * use select_biased to favor signals
      
      * Update node/subsystem/src/lib.rs
      
      Co-authored-by: default avatarAndronik Ordian <[email protected]>
      
      Co-authored-by: default avatarPeter Goodspeed-Niklaus <[email protected]>
      Co-authored-by: default avatarAndronik Ordian <[email protected]>
      5952e790
    • Robert Klotzner's avatar
      Request based PoV distribution (#2640) · c6f07d8f
      Robert Klotzner authored
      * Indentation fix.
      
      * Prepare request-response for PoV fetching.
      
      * Drop old PoV distribution.
      
      * WIP: Fetch PoV directly from backing.
      
      * Backing compiles.
      
      * Runtime access and connection management for PoV distribution.
      
      * Get rid of seemingly dead code.
      
      * Implement PoV fetching.
      
      Backing does not yet use it.
      
      * Don't send `ConnectToValidators` for empty list.
      
      * Even better - no need to check over and over again.
      
      * PoV fetching implemented.
      
      + Typechecks
      + Should work
      
      Missing:
      
      - Guide
      - Tests
      - Do fallback fetching in case fetching from seconding validator fails.
      
      * Check PoV hash upon reception.
      
      * Implement retry of PoV fetching in backing.
      
      * Avoid pointless validation spawning.
      
      * Add jaeger span to pov requesting.
      
      * Add back tracing.
      
      * Review remarks.
      
      * Whitespace.
      
      * Whitespace again.
      
      * Cleanup + fix tests.
      
      * Log to log target in overseer.
      
      * Fix more tests.
      
      * Don't fail if group cannot be found.
      
      * Simple test for PoV fetcher.
      
      * Handle missing group membership better.
      
      * Add test for retry functionality.
      
      * Fix flaky test.
      
      * Spaces again.
      
      * Guide updates.
      
      * Spaces.
      c6f07d8f
    • Peter Goodspeed-Niklaus's avatar
      use named generic types in generate_solution_type (#2707) · 27b6d839
      Peter Goodspeed-Niklaus authored
      * use named generic types in generate_solution_type
      
      * "Update Substrate"
      
      Co-authored-by: parity-processbot <>
      27b6d839
    • asynchronous rob's avatar
      Approval voting failsafe (#2675) · ef816b08
      asynchronous rob authored
      
      
      * add consensus log type
      
      * origin and issue force_approve
      
      * add origin in runtimes
      
      * ref API
      
      * scrape force_approve digest from header
      
      * add parent_hash to BlockEntry
      
      * add block_number to block entry and force_approve skeleton
      
      * implement and plug in force-approve
      
      * test force_approve
      
      * test force_approve extraction
      
      * westend runtime
      
      * Update node/core/approval-voting/src/approval_db/v1/mod.rs
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      
      * rename
      
      * Update runtime/parachains/src/initializer.rs
      
      Co-authored-by: default avatarAndré Silva <[email protected]>
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      Co-authored-by: default avatarAndré Silva <[email protected]>
      ef816b08
  6. Mar 27, 2021