1. Jun 23, 2022
  2. Jun 21, 2022
    • Mara Broda's avatar
      bump versions to 0.9.25 (#5684) · 97f9b840
      Mara Broda authored
      * kusama: bump spec_version to 9250
      
      * polkadot: bump spec_version to 9250
      
      * rococo: bump spec_version to 9250
      
      * westend: bump spec_version to 9250
      
      * bump version to 0.9.25
      
      * bump transaction version (polkadot & kusama) (#5690)
      
      * kusama: bump transaction_version to 12
      
      * polkadot: bump transaction_version to 13
      97f9b840
  3. Jun 16, 2022
  4. Jun 14, 2022
  5. Jun 13, 2022
  6. May 30, 2022
    • Robert Klotzner's avatar
      Request backed candidates unbounded. (#5610) · 72723c8a
      Robert Klotzner authored
      We are awaiting on the oneshot anyways, so we have back pressure. By
      using the unbounded channel make log messages like the following less
      likely (due to higher priority):
      
      	2022-05-30 13:46:38
      2022-05-30 11:46:38.565  WARN tokio-runtime-worker parachain::provisioner: failed to assemble or send inherent data err=CanceledBackedCandidates(Canceled)
      72723c8a
    • Gavin Wood's avatar
      Companion to Substrate #11490 (#5603) · 026848c9
      Gavin Wood authored
      * Fix warnings
      
      * Bump
      026848c9
  7. May 27, 2022
  8. May 23, 2022
  9. May 19, 2022
  10. May 18, 2022
  11. May 16, 2022
  12. May 12, 2022
  13. 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
  14. May 09, 2022
  15. May 08, 2022
  16. May 06, 2022
  17. May 04, 2022
  18. May 01, 2022
  19. Apr 29, 2022
  20. 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
  21. Apr 27, 2022
  22. 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
  23. 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
  24. Apr 13, 2022
  25. 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
  26. 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
  27. Apr 08, 2022