4

I am reading Cumulus PDK and Parachain documentations, and looking forward to converting our project to a parachain and join the Polkadot ecosystem.

However, I am confused regarding the parachain consensus mentioned in the documents. In FAQ section of parachains it is specified that "Parachains cannot use other consensus algorithms that provide their own finality", I am assuming it's about GRANDPA and not Aura or BABE. Refer to Parachains FAQ

Parachain consensus

Since Aura/ BABE are only block authoring side of the consensus, according to the FAQ mention above it should not impact the development of parachain even if I have a different block authoring logic.

Now, The document from Cumulus PDK, which specifies that the "Parachain will be able to use Aura, BABE, etc. (Not supported at the moment)". The focus is on the text in bold "Not supported at the moment". So according to Cumulus document I wont be able to use other block authoring consensus for the parachain node.

enter image description here

So if I want to join polkadot parachain ecosystem, can I use any consensus for authoring blocks as long as the finality is using the GRANDPA or is it not supported yet as mentioned in the Cumulus document.

Thank you,

1 Answer 1

3

Polkadot Consensus is known as hybrid consensus. Unlike other protocols, Hybrid consensus splits up the finality gadget from the block production mechanism.

As for block production, this happens both on the relay chain and the parachains' side. For a parachain it is possible to use AURA or BABE (or any other custom block production logic) to determine who is allowed to produce a block and send the PoVblock to the assigned validators. This probably isn't as easy as it sounds though.

Regarding finality, this is solely determined on the relay chain (Polkadot's shared security). Thus, a parachain doesn't have to and shouldn't implement its own finality.

7
  • Thank you for the reply. Yes, I understand the polkadot consensus is a hybrid consensus where BABE/Aura is a block production and GRANDPA is finality. So the blockchain I am working on is using a different block production mechanism, but for finality it still uses the GRANDPA. The question is if I can use the custom block production to become parachain. As mentioned above the two documents have some contradiction at the moment.
    – Yeou
    Commented Mar 10, 2023 at 8:25
  • With "it still uses GRANDPA" you mean it uses GRANDPA of Polkadot? Commented Mar 10, 2023 at 8:27
  • Yes, the finality is the same as the GRANDPA from polkadot consesus.
    – Yeou
    Commented Mar 10, 2023 at 8:28
  • You can't implement GRANDPA on the parachain side Commented Mar 10, 2023 at 8:30
  • 1
    *use the finality provided by the relay chain. Commented Mar 10, 2023 at 8:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.