Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Probability of BABE stalling? #10610

Closed
c-geek opened this issue Jan 7, 2022 · 6 comments
Closed

Probability of BABE stalling? #10610

c-geek opened this issue Jan 7, 2022 · 6 comments
Labels
J2-unconfirmed Issue might be valid, but it’s not yet known.

Comments

@c-geek
Copy link

c-geek commented Jan 7, 2022

I've found in the docs + checked code that BABE has only 2 fallbacks in case no primary blocks: SecondaryPlain + SecondaryVRF.

While I'm happy to have discovered this extra SecondaryVRF I was not aware of, yet two secondary authors seems a bit low to me because it's quite easy to have a faulty node in a epoch, even more with sleeping attackers.

Is there another fallback I'm not aware of? Don't you think there is a security issue here? Am I missing something?

@github-actions github-actions bot added the J2-unconfirmed Issue might be valid, but it’s not yet known. label Jan 7, 2022
@bkchr
Copy link
Member

bkchr commented Jan 7, 2022

You only need one block per epoch/session to prevent BABE from stalling.

@c-geek
Copy link
Author

c-geek commented Jan 7, 2022

I don't get it. The problem is the same to me whether the block is the first of an epoch, the second or the last.

Don't we have a stalling if no next block is proposed?

@bkchr
Copy link
Member

bkchr commented Jan 7, 2022

What you mean? When no block is produced anymore? Why should there be no block be produced anymore?

@c-geek
Copy link
Author

c-geek commented Jan 8, 2022

Because of VRF leading to no primary block (no validator matching), same for secondary VRF, and same for secondary plain because, as I understand it, only one validator is selected per slot and he might be faulty.

@bkchr
Copy link
Member

bkchr commented Jan 9, 2022

There is no problem if one slot is skipped.

@c-geek
Copy link
Author

c-geek commented Jan 9, 2022

That was my blind spot. Thanks.

@c-geek c-geek closed this as completed Jan 9, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
J2-unconfirmed Issue might be valid, but it’s not yet known.
Projects
None yet
Development

No branches or pull requests

2 participants