Skip to content
  1. Jun 20, 2021
  2. Jun 19, 2021
    • André Silva's avatar
      Companion for substrate#9138 (#3294) · 85936d28
      André Silva authored
      * fix babe params
      
      * update Substrate
      
      Co-authored-by: parity-processbot <>
      85936d28
    • dependabot[bot]'s avatar
      Bump env_logger from 0.8.2 to 0.8.4 (#3298) · a5c6d30c
      dependabot[bot] authored
      
      
      Bumps [env_logger](https://github.com/env-logger-rs/env_logger) from 0.8.2 to 0.8.4.
      - [Release notes](https://github.com/env-logger-rs/env_logger/releases)
      - [Changelog](https://github.com/env-logger-rs/env_logger/blob/main/CHANGELOG.md)
      - [Commits](https://github.com/env-logger-rs/env_logger/compare/v0.8.2...v0.8.4)
      
      ---
      updated-dependencies:
      - dependency-name: env_logger
        dependency-type: direct:production
        update-type: version-update:semver-patch
      ...
      
      Signed-off-by: default avatardependabot[bot] <[email protected]>
      
      Co-authored-by: default avatardependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
      a5c6d30c
    • ordian's avatar
      network-bridge: remove action_sink abstraction (#3308) · 71c50179
      ordian authored
      * network-bridge: remove action_sink abstraction
      
      * another wtf
      
      * filter out event stream
      
      * Revert "filter out event stream"
      
      This reverts commit 63bd8f5de5b44d415dcb205e1b9fad8145200e06.
      
      * retain cleanup though
      71c50179
    • asynchronous rob's avatar
      Block weight ChainAPI (#3301) · b70da7bf
      asynchronous rob authored
      
      
      * guide: ChainApiMessage::BlockWeight
      
      * node: BlockWeight ChainAPI
      
      * fix compile issue
      
      * implement ChainApi::BlockWeight
      
      * add test for ChainApi::BlockWeight
      
      * update substrate
      
      Co-authored-by: default avatarAndré Silva <[email protected]>
      b70da7bf
    • Andreas Doerr's avatar
      Bump BEEFY (#3302) · be2d1ce0
      Andreas Doerr authored
      be2d1ce0
    • Lldenaurois's avatar
      Follow-up PR: Count no-shows (#3309) · 5c16c95b
      Lldenaurois authored
      * node/approval-voting: test for invalid validator index in assignments
      
      This commit adds a unit test to show that, currently, validator indexes
      greater than n_validators (or the length of the approvals bitvector) are
      counted in n_assignments. In the subsequent commit we will correct this
      behavior.
      
      * node/approval-voting: ignore invalid validator indexes in n_assignments
      
      This commit ignores any validator assignments whose index is beyond
      n_validators. Without this check, an improperly crafted assignment would
      be counted towards the approval.
      
      It still remains that n_assignments and count_no_shows inspect the
      number of validators and approvals, respectively. Ideally we would
      add greater safety around ensuring these two values cannot differ.
      5c16c95b
  3. Jun 18, 2021
    • ordian's avatar
      improved gossip topology (#3270) · ad9c0288
      ordian authored
      * gossip-support: gossip topology
      
      * some fixes
      
      * handle view update for newly added gossip peers
      
      * fix neighbors calculation
      
      * fix test
      
      * resolve TODOs
      
      * typo
      
      * guide updates
      
      * spaces in the guide
      
      * sneaky spaces
      
      * hash randomness
      
      * address some review nits
      
      * use unbounded in bridge for subsystem msg
      ad9c0288
    • dependabot[bot]'s avatar
      Bump derive_more from 0.99.11 to 0.99.14 (#3248) · dc286de7
      dependabot[bot] authored
      
      
      Bumps [derive_more](https://github.com/JelteF/derive_more) from 0.99.11 to 0.99.14.
      - [Release notes](https://github.com/JelteF/derive_more/releases)
      - [Changelog](https://github.com/JelteF/derive_more/blob/master/CHANGELOG.md)
      - [Commits](https://github.com/JelteF/derive_more/compare/v0.99.11...v0.99.14)
      
      ---
      updated-dependencies:
      - dependency-name: derive_more
        dependency-type: direct:production
        update-type: version-update:semver-patch
      ...
      
      Signed-off-by: default avatardependabot[bot] <[email protected]>
      
      Co-authored-by: default avatardependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
      dc286de7
  4. Jun 17, 2021
    • Lldenaurois's avatar
      Extract and test count_no_shows method for approval voting (#3264) · f8ed46f4
      Lldenaurois authored
      * node/approval-voting: extract and test count_no_shows method
      
      This commit extracts no_show computation into a pure function so that it can be
      extensively unit tested.
      
      * node/approval-voting: ignore invalid validator indexes in count_no_show
      
      Previously indexes that were past the length of the approvals bitvector
      would contribute to the no_show count or the next_no_show value. This
      commit changes the behavior to ignore garbage values.
      
      * node/approval-voting: add comment for next_no_show adding clock_drift
      f8ed46f4
    • ordian's avatar
      cleanup more tests and spaces (#3288) · 325cc888
      ordian authored
      * cleanup more tests and spaces
      
      * oops
      325cc888
    • Zeke Mostov's avatar
      Companion #9019 (max rpc payload override) (#3276) · 6f8c8ec3
      Zeke Mostov authored
      * Companion #9019 (max rpc payload override)
      
      * update Substrate
      
      Co-authored-by: parity-processbot <>
      6f8c8ec3
  5. Jun 16, 2021
    • asynchronous rob's avatar
      extract determine_new_blocks into a separate utility (#3261) · 462ca043
      asynchronous rob authored
      * extract determine_new_blocks into a separate utility
      
      * rework docs
      462ca043
    • Lldenaurois's avatar
      Approval checking unit tests (#3252) · 0da70dfa
      Lldenaurois authored
      * node/approval_checking: break out filled_tranch_iterator method
      
      In the subsequent commit, we will begin to test this method in
      isolation.
      
      * node/approval-voting: fix tranche back-filling algorithm
      
      Previously, this algorithm would generate duplicate, empty entries for
      tranches (1..pre_end). This is caused because the initial value (0) for
      gap_end is treated as the end of a prior tranche that wasn't actually
      processed. The first pass thus would add (1..tranche) empty entries, in
      addition to the (0..pre_end) empty entries chained at the end of the
      method.
      
      This is fixed by using the current tranche as the gap_start for the
      first iteration, ensuring that the approval_entries_filled only produces
      entries in the range (pre_end..post_start).
      
      * Address feedback
      0da70dfa
    • Bernhard Schuster's avatar
      malus - mockable overseer mvp (#3224) · 44a8aa23
      Bernhard Schuster authored
      44a8aa23
  6. Jun 15, 2021
  7. Jun 14, 2021
  8. Jun 13, 2021
    • ordian's avatar
      approval votes checking logs (#3233) · 93e42fb2
      ordian authored
      * approval-voting: logs for invalid votes
      
      * proper errors for assignment checks
      
      * proper errors for approval checks
      93e42fb2
    • asynchronous rob's avatar
      4797fb7d
    • asynchronous rob's avatar
    • asynchronous rob's avatar
      Dispute Coordinator Subsystem (#3150) · 5bc2b277
      asynchronous rob authored
      
      
      * skeleton for dispute-coordinator
      
      * add coordinator and participation message types
      
      * begin dispute-coordinator DB
      
      * functions for loading
      
      * implement strongly-typed DB transaction
      
      * add some tests for DB transaction
      
      * core logic for pruning
      
      * guide: update candidate-votes key for coordinator
      
      * update candidate-votes key
      
      * use big-endian encoding for session, and implement upper bound generator
      
      * finish implementing pruning
      
      * add a test for note_current_session
      
      * define state of the subsystem itself
      
      * barebones subsystem definition
      
      * control flow
      
      * more control flow
      
      * implement session-updating logic
      
      * trace
      
      * control flow for message handling
      
      * Update node/core/dispute-coordinator/src/lib.rs
      
      Co-authored-by: default avatarAndré Silva <[email protected]>
      
      * Update node/subsystem/src/messages.rs
      
      Co-authored-by: default avatarAndré Silva <[email protected]>
      
      * some more control flow
      
      * guide: remove overlay
      
      * more control flow
      
      * implement some DB getters
      
      * make progress on importing statements
      
      * add SignedDisputeStatement struct
      
      * move ApprovalVote to shared primitives
      
      * add a signing-payload API to explicit dispute statements
      
      * add signing-payload to CompactStatement
      
      * add relay-parent hash to seconded/valid dispute variatns
      
      * correct import
      
      * type-safe wrapper around dispute statements
      
      * use checked dispute statement in message type
      
      * extract rolling session window cache to subsystem-util
      
      * extract session window tests
      
      * approval-voting: use rolling session info cache
      
      * reduce dispute window to match runtime in practice
      
      * add byzantine_threshold and supermajority_threshold utilities to primitives
      
      * integrate rolling session window
      
      * Add PartialOrd to CandidateHash
      
      * add Ord to CandidateHash
      
      * implement active dispute update
      
      * add dispute messages to AllMessages
      
      * add dispute stubs to overseer
      
      * inform dispute participation to participate
      
      * implement issue_local_statement
      
      * implement `determine_undisputed_chain`
      
      * fix warnings
      
      * test harness for dispute coordinator tests
      
      * add more helpers to test harness
      
      * add some more helpers
      
      * some tests for dispute coordinator
      
      * ignore wrong validator indices
      
      * test finality voting rule constraint
      
      * add more tests
      
      * add variants to network bridge
      
      * fix test compilation
      
      * remove most dispute coordinator functionality
      
      as of #3222 we can do most of the work within the approval voting subsystem
      
      * Revert "remove most dispute coordinator functionality"
      
      This reverts commit 9cd615e8eb6ca0b382cbaff525d813e753d6004e.
      
      * Use thiserror
      
      Co-authored-by: default avatarBernhard Schuster <[email protected]>
      
      * Update node/core/dispute-coordinator/src/lib.rs
      
      Co-authored-by: default avatarBernhard Schuster <[email protected]>
      
      * extract tests to separate module
      
      * address nit
      
      * adjust run_iteration API
      
      Co-authored-by: default avatarAndré Silva <[email protected]>
      Co-authored-by: default avatarBernhard Schuster <[email protected]>
      5bc2b277
  9. Jun 12, 2021
  10. Jun 11, 2021
  11. Jun 09, 2021
  12. Jun 08, 2021
    • Bastian Köcher's avatar
      polkadot-service: Make native runtime configurable (#3189) · f6cbe8e8
      Bastian Köcher authored
      * polkadot-service: Make native runtime configurable
      
      This pull requests adds support for configuring the native runtimes used
      by polkadot-service. While this whole pr doesn't change that much for
      polkadot, besides not having the light-node enabled for the default
      polkadot binary. However, downstream projects (parachains) will have a
      much better compile time. In cumulus for example the `cargo test --all
      --release` is about 4m faster to compile.
      
      * Fixes
      
      * Fix
      
      * Enable rococo-native
      
      * Fix light client
      
      * 🤦
      
      * Fixes
      f6cbe8e8