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

Take circular GossipVerifier reference by Arc #3432

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

tnull
Copy link
Contributor

@tnull tnull commented Nov 28, 2024

Closes #3369.

Our current architecture requires GossipVerifier's type signature to include a circular reference to itself. Previously, we directly gave that as Self, which however did not work when setting it dynamically under all circumstances. Here we take Self by Arc mitigate this issue.

This change was proposed by @TheBlueMatt in #3369 (comment), I have yet to confirm it works as expected myself.

Our current architecture requires `GossipVerifier`'s type signature to
include a circular reference to itself. Previously, we directly gave
that as `Self`, which however did not work when setting it dynamically
under all circumstances. Here we take `Self` by `Arc` mitigate this
issue.
@tnull tnull added this to the 0.1 milestone Nov 28, 2024
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.

Drop reference to Self in GossipVerifier::new
1 participant