1. May 27, 2022
  2. May 23, 2022
  3. May 19, 2022
  4. May 18, 2022
  5. May 16, 2022
  6. May 12, 2022
  7. May 11, 2022
    • Bernhard Schuster's avatar
      polkadot-node-subsystem package rename mish mash cleanup (#5502) · d437a33e
      Bernhard Schuster authored
      * unify to polkadot-node-subsystem{,-test-helpers}
      
      * chore: fmt
      d437a33e
    • Davide Galassi's avatar
      Revert approval voting (#5438) · 8837dc7e
      Davide Galassi authored
      * Revert approval-voting subsystem
      
      * Approval voting revert encapsulated within 'ops' module
      
      * use 'get_stored_blocks' to get lower block height
      
      * Fix error message
      
      * Optionally shrink/delete stored blocks range
      
      * range end number is last block number plus 1
      
      * Apply code review suggestions
      
      * Use tristate enum for block range in backend overlay
      
      * Add clarification comment
      
      * Add comments to private struct
      8837dc7e
  8. May 09, 2022
  9. May 08, 2022
  10. May 06, 2022
  11. May 04, 2022
  12. May 01, 2022
  13. Apr 29, 2022
  14. Apr 28, 2022
    • Davide Galassi's avatar
      Chain-selection subsystem data revert (#5350) · bbdfc3d9
      Davide Galassi authored
      
      
      * Chain-selection subsystem data revert
      
      * Cargo fmt
      
      * Better code comments
      
      * Remove unwraps
      
      * Document public method
      
      * Remove duplicated 'ChainSelectionSubsystem' impl block
      
      * Fix typos
      
      * Nitpicks
      
      * Revert returns a service Error
      
      * Removed superflous error handling
      
      * Apply suggestions from code review
      
      * Rename tree 'revert' to 'revert_to'
      
      Co-authored-by: default avatarSebastian Kunert <[email protected]>
      bbdfc3d9
  15. Apr 27, 2022
  16. Apr 25, 2022
    • Bernhard Schuster's avatar
      metrics separation (#5391) · 033950ca
      Bernhard Schuster authored
      * split metrics from collation generation
      
      * move metrics to separate file out of backing
      
      * split bitfield signing metrics
      
      * split candidate validation metrics
      
      * split chain api metrics
      
      * split metrics from runtime API
      
      * util is not used in backed metrics mod
      
      * fmt
      
      * missing types
      
      * sure
      033950ca
  17. Apr 19, 2022
    • asynchronous rob's avatar
      Reduce network bandwidth, improve parablock times: optimize approval-distribution (#5164) · 79ecc538
      asynchronous rob authored
      
      
      * gossip-support: be explicit about dimensions
      
      * some guide updates
      
      * update network-bridge to distinguish x and y dimensions
      
      * get everything to compile
      
      * beginnings
      
      * some TODOs
      
      * polkadot runtime: use relevant_authorities
      
      * make gossip topologies per-session
      
      * better formatting
      
      * gossip support: use current session validators
      
      * expand in comment
      
      * adjust tests and fix index bug
      
      * add past/present/future connection test and clean up code
      
      * fmt
      
      * network bridge: updated types
      
      * update protocols to new gossip topology message
      
      * guide updates
      
      * add session to BlockApprovalMeta
      
      * add session to block info
      
      * refactor knowledge and remove most unify logic
      
      * start replacing gossip_peers with new SessionTopologies
      
      * add routing information to message state
      
      * add some utilities to SessionTopology
      
      * implement new gossip topology logic
      
      * re-implement unify_with_peer
      
      * distribute assignments according to topology
      
      * finish grid topology implementation
      
      * refactor network bridge slightly
      
      * issue connection requests on all past/present/future
      
      * fmt
      
      * address grumbles
      
      * tighten invariants in unify_with_peer
      
      * implement random propagation
      
      * refactor: extract required routing adjustment logic
      
      * some block-age logic
      
      * aggressively propagate messages when finality is slow
      
      * overhaul aggression system to have 3 levels
      
      * add aggression metrics
      
      * remove aggression L3
      
      * reduce random circulation
      
      * remove PeerData
      
      * get approval tests compiling
      
      * use btree_map in known_by to make deterministic
      
      * Revert "use btree_map in known_by to make deterministic"
      
      This reverts commit 330d65343a7bb6fe4dd0f24bd8dbc15c0cbdbd9d.
      
      * test XY grid propagation
      
      * remove stray println
      
      * test unshared dimension propagation
      
      * add random gossip check
      
      * test unify_with_peer better
      
      * test sending after getting gossip topology
      
      * test L1 aggression on originator
      
      * test L1 aggression for non-originators
      
      * test non-originator aggression L2
      
      * fnt
      
      * ~spellcheck
      
      * fix statement-distribution tests
      
      * fix flaky test
      
      * fix metrics typo
      
      * re-send periodically
      
      * test resending
      
      * typo
      
      Co-authored-by: default avatarBernhard Schuster <[email protected]>
      
      * add more metrics about apd messages
      
      * add back unify_with_peer logs
      
      * make Resend an enum
      
      * be more explicit when resending
      
      * fmt
      
      * fix error
      
      * add a TODO for refactoring
      
      * remove debug metrics
      
      * add some guide stuff
      
      * fmt
      
      * update runtime API in test-runtim
      
      Co-authored-by: default avatarBernhard Schuster <[email protected]>
      79ecc538
    • asynchronous rob's avatar
      flatten dispute-coordinator 'real' module. (#5254) · edfa24bb
      asynchronous rob authored
      
      
      * flatton dispute-coordinator 'real' module,
      
      * Drop obsolete modules.
      
      Co-authored-by: default avatarRobert Klotzner <[email protected]>
      edfa24bb
    • Robert Klotzner's avatar
      dispute-coordinator: Cleanup + Bug fixes (#5323) · f820db49
      Robert Klotzner authored
      * Make import confirmation oneshot optional.
      
      * Cleanup for further improvements.
      
      * Queue adoptions.
      
      * Fix fieldname
      
      * Use correct relay parent
      
      * Fix scraper tests.
      
      * Small optimization.
      
      * Fix all tests.
      
      * Fix other tests.
      
      * fmt
      
      * spelling
      
      * Fix warning.
      f820db49
  18. Apr 13, 2022
  19. Apr 12, 2022
    • Tsvetomir Dimitrov's avatar
      Add staging runtime api (#5048) · fd020c07
      Tsvetomir Dimitrov authored
      * Move `trait ParachainHost` to a separate version independent module
      
      `trait ParachainHost` is no longer part of a specific primitives
      version. Instead there is a single trait for stable and staging api
      versions. The trait contains stable AND staging methods. The latter are
      explicitly marked as unstable.
      
      * Fix `use` primitives
      
      `polkadot_primitives::v2` becomes `polkadot_primitives::runtime_api`
      
      * Staging API declaration and stubs
      
      Introduces the concept for 'staging functions' in runtime API. These
      functions are still in testing and they are meant to be used only
      within test networks (Westend).
      They coexist with the stable calls for technical reasons - maintaining
      different runtime APIs for different networks is hard to implement.
      
      Check the doc comments in source files for more details how the staging
      API should be used.
      
      * Add new staging method - get_session_disputes()
      
      Add `staging_get_session_disputes` to `ParachainHost` as the first
      method of the staging API.
      
      * Hide vstaging runtime api implementations  behind feature flag
      
      * Fix test runtime
      
      * fn staging_get_session_disputes() is renamed to fn staging_get_disputes()
      fd020c07
  20. Apr 09, 2022
    • Sergei Shulepov's avatar
      Fixes the dead lock when any of the channels get at capacity. (#5297) · b89dc00e
      Sergei Shulepov authored
      The PVF host is designed to avoid spawning tasks to minimize knowledge
      of outer code. Using `async_std::task::spawn` (or Tokio's counterpart)
      deemed unacceptable, `SpawnNamed` undesirable. Instead there is only one
      task returned that is spawned by the candidate-validation subsystem.
      The tasks from the sub-components are polled by that root task.
      
      However, the way the tasks are bundled was incorrect. There was a giant
      select that was polling those tasks. Particularly, that implies that as soon as
      one of the arms of that select goes into await those sub-tasks stop
      getting polled. This is a recipe for a deadlock which indeed happened
      here.
      
      Specifically, the deadlock happened during sending messages to the
      execute queue by calling
      [`send_execute`](https://github.com/paritytech/polkadot/blob/a68d9be35656dcd96e378fd9dd3d613af754d48a/node/core/pvf/src/host.rs#L601).
      When the channel to the queue reaches the capacity, the control flow is
      suspended until the queue handles those messages. Since this code is
      essentially reached from [one of the select
      arms](https://github.com/paritytech/polkadot/blob/a68d9be35656dcd96e378fd9dd3d613af754d48a/node/core/pvf/src/host.rs#L371),
      the queue won't be given the control and thus no further progress can be
      made.
      
      This problem is solved by bundling the tasks one level higher instead,
      by `selecting` over those long-running tasks.
      
      We also stop treating returning from those long-running tasks as error
      conditions, since that can happen during legit shutdown.
      b89dc00e
  21. Apr 08, 2022
  22. Apr 07, 2022
  23. Apr 04, 2022
  24. Apr 01, 2022
  25. Mar 31, 2022
  26. Mar 30, 2022
  27. Mar 25, 2022