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

Return good hashes from merge() #65

Merged
merged 2 commits into from Oct 19, 2023
Merged

Conversation

jagerman
Copy link
Member

@jagerman jagerman commented Oct 6, 2023

Session clients required the list of hashes from a merge() to perform various operations based on the messages that were accepted. This updates merge() to return a vector of accepted hashes.

For the C API, this returns a config_string_list* pointer that needs to be freed, but contains all the good hashes (the same way current_hashes() works).

Edit: most of this is merged via #51; this PR just updates the documentation and fixes some leaky code in the test suite.

Session clients required the list of hashes from a merge() to perform
various operations based on the messages that were accepted.  This
updates `merge()` to return a vector of accepted hashes.

For the C API, this returns a config_string_list* pointer that needs to
be freed, but contains all the good hashes (the same way
current_hashes() works).
@jagerman jagerman force-pushed the merge-hash-return branch 2 times, most recently from 826f705 to 401a8b5 Compare October 18, 2023 23:32
@jagerman jagerman merged commit 2bb5188 into oxen-io:dev Oct 19, 2023
1 check passed
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.

None yet

1 participant