Start a collator node and add more collators
Learn how to get your chain's collators up and running.
#
GoalLearn how to select collators and set-up collator nodes when launching a parachain.
#
Use casesLaunching a parachain.
#
OverviewWhen selecting collators for a parachain, it is important to ensure that there exist some neutral collators to prevent censorship - but not necessarily a majority. It is also important to avoid having too many collators as they may slow down the network. This guide steps through the considerations to take into account when launching a collator node.
#
Steps#
1. Collator selectionYou are free to choose your method of collator selection. Common methods include stake voting or directly assigning collators via committee or other origins such as democracy. In both cases, create a pallet to implement the logic that best fits your needs.
#
Stake votingSee the collator-selection
pallet for a practical example on implementing stake voting to select collators.
#
Using on-chain governanceImplement a special origin that allows members of that origin to become a collator. Use the democracy pallet to elect these members and define them in your pallet dedicated to handling collartor selection:
note
There are also different ways to implement incentives for collators. Take a look at this example to explore how.
#
2. Starting a collator nodeRefer to this guide to start and set up a collator node.
#
3. Adding collatorsRefer to this instruction to add more collators.
#
Examples- Cumulus implementation of collator selection with incentives using transaction fees
- Moonbeam implementation of collator selection using an inflationary monetary policy staking scheme.