26 breaking releases

new 0.29.0 Mar 29, 2026
0.28.0 Dec 19, 2025
0.27.0 Dec 8, 2025
0.26.0 Oct 3, 2025
0.0.0 Nov 14, 2022

#30 in #relay-chain

Download history 665/week @ 2025-12-06 601/week @ 2025-12-13 709/week @ 2025-12-20 687/week @ 2025-12-27 740/week @ 2026-01-03 622/week @ 2026-01-10 689/week @ 2026-01-17 750/week @ 2026-01-24 777/week @ 2026-01-31 791/week @ 2026-02-07 776/week @ 2026-02-14 808/week @ 2026-02-21 692/week @ 2026-02-28 913/week @ 2026-03-07 737/week @ 2026-03-14 611/week @ 2026-03-21

3,062 downloads per month
Used in 13 crates (4 directly)

GPL-3.0-or-later…

1.5MB
22K SLoC

The relay-chain provided consensus algorithm for parachains.

This is the simplest consensus algorithm you can use when developing a parachain. It is a permission-less consensus algorithm that doesn't require any staking or similar to join as a collator. In this algorithm the consensus is provided by the relay-chain. This works in the following way.

  1. Each node that sees itself as a collator is free to build a parachain candidate.

  2. This parachain candidate is send to the parachain validators that are part of the relay chain.

  3. The parachain validators validate at most X different parachain candidates, where X is the total number of parachain validators.

  4. The parachain candidate that is backed by the most validators is chosen by the relay-chain block producer to be added as backed candidate on chain.

  5. After the parachain candidate got backed and included, all collators start at 1.

Dependencies

~115–160MB
~3M SLoC