Skip to content

sc-consensus-beefy: reuse instead of recreate GossipEngine - #1262

Merged
acatangiu merged 1 commit into
paritytech:masterfrom
acatangiu:beefy-reuse-gossip-engine
Aug 29, 2023
Merged

sc-consensus-beefy: reuse instead of recreate GossipEngine#1262
acatangiu merged 1 commit into
paritytech:masterfrom
acatangiu:beefy-reuse-gossip-engine

Conversation

@acatangiu

Copy link
Copy Markdown
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
@Polkadot-Forum

Copy link
Copy Markdown

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

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.

5 participants