Skip to content

Conversation

@etwest
Copy link
Collaborator

@etwest etwest commented Jun 24, 2023

The verifier is a little overpowered and as a consequence there are a bunch of race conditions if edges are verified by multiple threads. This pull request reduces the power of the verifier while ensuring it still catches bugs. The verifier now checks the following:

  • Edge correctness, each edge found in queries is validated as being within the graph
  • CC correctness, the connected components returned by the query are verified to be correct.

The verifiers no longer check that no redundant edges are passed to verify_edge this means the verifier has to run a dsu which is a little overpowered and introduces race conditions. We already have tests for the DSU so it's probably fine.

@etwest etwest marked this pull request as ready for review June 24, 2023 19:36
Copy link
Contributor

@DanielDeLayo DanielDeLayo left a comment

Choose a reason for hiding this comment

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

Reducing the power of the verifier is probably fine.

@etwest etwest merged commit a9b0329 into main Jun 24, 2023
@etwest etwest deleted the verifier branch June 24, 2023 20:25
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