6

I've read through various documentation on consensus algorithms, along with the fellow SE post What is the difference between Babe, Aura, and Grandpa?. I'm unsure what the posited advantage of BABE/GRANDPA is when you have equal weights.

The only possible idea I may have is GRANDPA's chain finalization, instead of block finalization, offers greater efficiency despite use of VRFs and the amount of forks it causes, along with a consistent block time (and reduced signature count). With 50 validators at 5 seconds, a 30% failure (below the expected BFT threshold) would cause a 75s latency at worst which could be considered unacceptable. Having 30% of nodes fail at once (and right next to each other in the queue) should almost never happen though when discussing real world usage? Perfectly even distribution would have every second block take 10 seconds (5, 5, failure, 10, 5, failure, 10, 5, failure, 10, 5...).

Are there any other considerations I'm missing? Has there been a performance analysis publicized comparing the two? Are the consensus algorithms sufficiently light weight where performance isn't considered a concern and the added robustness of BABE/GRANDPA makes it optimal?

2 Answers 2

3

GRANDPA is orthogonal to the blockchain extension algorithm. GRANDPA doesn't create blocks but only finalizes blocks that have already been created.

One main downside to Aura is the fact that the block author for every upcoming slot is easily predictable: it's a simple round-robin mechanism where validators take turns authoring blocks. An attacker which can DoS one validator at a time can halt block production across the entire network.

BABE uses VRFs to limit the amount of blocks produces, but also makes the author of the next block unpredictable. This makes BABE objectively more secure.

Both are lightweight.

I don't consider differing weights across validators' votes to make any impact on the viability of either consensus algorithm relative to the other.

5

Validator selection. Aura is in a round-robin fashion and therefore has predictable block authors, Babe does not.

If you can predict the validators for a specific block way into the future, you can think of some attack strategies.

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.