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

Feat/pubsub validators #58

Merged
merged 4 commits into from
Dec 17, 2019
Merged

Feat/pubsub validators #58

merged 4 commits into from
Dec 17, 2019

Conversation

dryajov
Copy link
Contributor

@dryajov dryajov commented Dec 14, 2019

No description provided.

# TODO: add timeout to validator
pending = pending.concat(p.validators[topic].mapIt(it(topic, message)))

await allFutures(pending) # await all futures
Copy link
Contributor

Choose a reason for hiding this comment

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

Seems reasonable.

Copy link
Contributor

@tersec tersec left a comment

Choose a reason for hiding this comment

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

Seems reasonable. As with any code, there are possible improvements, et cetera, but it unblocks continued attestation aggregation extended validation.

libp2p/protocols/pubsub/pubsub.nim Outdated Show resolved Hide resolved
libp2p/protocols/pubsub/pubsub.nim Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants