Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add JobQueue for each gossip topic #2277

Merged
merged 4 commits into from
Mar 29, 2021
Merged

Conversation

dapplion
Copy link
Contributor

@dapplion dapplion commented Mar 26, 2021

Motivation

See #2265

Description

Add a single queue for each gossip topic. Numbers are copied from here to start

https://github.com/sigp/lighthouse/blob/b34a79dc0b02e04441ba01fd0f304d1e203d877d/beacon_node/network/src/beacon_processor/mod.rs#L772-L825

but should be adjusted after experimentation in production settings

Closes #2265 closes #2241

Steps to test or reproduce

@github-actions github-actions bot added the scope-networking All issues related to networking, gossip, and libp2p. label Mar 26, 2021
@codeclimate
Copy link

codeclimate bot commented Mar 26, 2021

Code Climate has analyzed commit 150582d and detected 0 issues on this pull request.

View more on Code Climate.

Copy link
Member

@wemeetagain wemeetagain left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

| ((voluntaryExit: phase0.SignedVoluntaryExit) => Promise<void> | void)
| ((proposerSlashing: phase0.ProposerSlashing) => Promise<void> | void)
| ((attesterSlashing: phase0.AttesterSlashing) => Promise<void> | void);
export type GossipTopic = GossipTopicMap[keyof GossipTopicMap];
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@wemeetagain wemeetagain merged commit 4564667 into master Mar 29, 2021
@wemeetagain wemeetagain deleted the dapplion/validationQueue branch March 29, 2021 20:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
scope-networking All issues related to networking, gossip, and libp2p.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add queue in gossip validation Throttle libp2p validation
2 participants