Skip to content

Conversation

acatangiu
Copy link
Contributor

sc-consensus-beefy: restart voter on pallet reset #14821 introduced a mechanism to reinitialize the BEEFY worker on certain errors; but re-creating the GossipEngine doesn't play well with Rework the event system of sc-network #14197.

So this PR slightly changes the re-initialization logic to reuse the original GossipEngine and not recreate it.

@acatangiu acatangiu requested a review from altonen August 29, 2023 13:23
@acatangiu acatangiu self-assigned this Aug 29, 2023
@acatangiu acatangiu requested a review from serban300 August 29, 2023 13:23
@acatangiu acatangiu added the T0-node This PR/Issue is related to the topic “node”. label Aug 29, 2023
@acatangiu acatangiu merged commit 562557a into paritytech:master Aug 29, 2023
@acatangiu acatangiu deleted the beefy-reuse-gossip-engine branch August 29, 2023 15:47
bkchr pushed a commit that referenced this pull request Aug 30, 2023
"sc-consensus-beefy: restart voter on pallet reset #14821" introduced
a mechanism to reinitialize the BEEFY worker on certain errors; but
re-creating the GossipEngine doesn't play well with
"Rework the event system of sc-network #14197".

So this PR slightly changes the re-initialization logic to reuse the original
GossipEngine and not recreate it.

Signed-off-by: Adrian Catangiu <[email protected]>
Daanvdplas pushed a commit that referenced this pull request Sep 11, 2023
"sc-consensus-beefy: restart voter on pallet reset #14821" introduced
a mechanism to reinitialize the BEEFY worker on certain errors; but
re-creating the GossipEngine doesn't play well with
"Rework the event system of sc-network #14197".

So this PR slightly changes the re-initialization logic to reuse the original
GossipEngine and not recreate it.

Signed-off-by: Adrian Catangiu <[email protected]>
@Polkadot-Forum
Copy link

This pull request has been mentioned on Polkadot Forum. There might be relevant details there:

https://forum.polkadot.network/t/polkadot-kusama-bridge/2971/5

bgallois pushed a commit to duniter/duniter-polkadot-sdk that referenced this pull request Mar 25, 2024
…h#1262)


"sc-consensus-beefy: restart voter on pallet reset #14821" introduced
a mechanism to reinitialize the BEEFY worker on certain errors; but
re-creating the GossipEngine doesn't play well with
"Rework the event system of sc-network #14197".

So this PR slightly changes the re-initialization logic to reuse the original
GossipEngine and not recreate it.

Signed-off-by: Adrian Catangiu <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

T0-node This PR/Issue is related to the topic “node”.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants