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

pov-recovery: Enable pov-recovery as well on full nodes #927

Merged
merged 4 commits into from
Jan 21, 2022

Conversation

bkchr
Copy link
Member

@bkchr bkchr commented Jan 21, 2022

Pov recovery was before only enabled for collators. The reason behind this was prevention of spam of
the relay chain for block recovery. However, recent events has shown that this wasn't a good idea.
So, this pr enables pov-recover for normal full nodes as well, but with a much higher delay before
trying to recover a block. This means that full nodes will wait in minimum 2.5 minutes and in
maximum 5 minutes before recovering a block. This should give collators in "normal mode" enough time
to recover a block (they wait in maximum 6 seconds after they have seen a new candidate in the relay
chain) before recovering a block. So, we should hopefully not spam the relay chain.

Pov recovery was before only enabled for collators. The reason behind this was prevention of spam of
the relay chain for block recovery. However, recent events has shown that this wasn't a good idea.
So, this pr enables pov-recover for normal full nodes as well, but with a much higher delay before
trying to recover a block. This means that full nodes will wait in minimum 2.5 minutes and in
maximum 5 minutes before recovering a block. This should give collators in "normal mode" enough time
to recover a block (they wait in maximum 6 seconds after they have seen a new candidate in the relay
chain) before recovering a block. So, we should hopefully not spam the relay chain.
@bkchr bkchr requested a review from skunert January 21, 2022 14:30
@bkchr bkchr added the B0-silent Changes should not be mentioned in any release notes label Jan 21, 2022
@skunert
Copy link
Contributor

skunert commented Jan 21, 2022

Looks good. Only thing is that the comment here should be adjusted to reflect this change: https://github.com/paritytech/cumulus/blob/master/client/pov-recovery/src/lib.rs#L27

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
B0-silent Changes should not be mentioned in any release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants