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(rln-relay): metadata ffi api #1803

Merged
merged 3 commits into from
Jun 16, 2023
Merged

feat(rln-relay): metadata ffi api #1803

merged 3 commits into from
Jun 16, 2023

Conversation

rymnc
Copy link
Contributor

@rymnc rymnc commented Jun 15, 2023

Description

This PR introduces 2 new api's from zerokit, set_metadata, and get_metadata. They are both used to persist metadata about merkle tree state, like last block synced, etc. This is very useful to resume sync from an existing tree database.

Changes

  • new ffi api's get_metadata, set_metadata
  • Helpers for both
  • Tests for both

Issue

Unblocks #1772

@rymnc rymnc self-assigned this Jun 15, 2023
@rymnc rymnc marked this pull request as ready for review June 15, 2023 19:42
Copy link
Contributor

@SionoiS SionoiS left a comment

Choose a reason for hiding this comment

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

LGTM

@rymnc rymnc merged commit 045f07c into master Jun 16, 2023
@rymnc rymnc deleted the get-set-metadata-ffi branch June 16, 2023 06:03
SionoiS pushed a commit that referenced this pull request Jun 19, 2023
* feat(rln-relay): metadata ffi api

* chore(rln-relay): bump to latest master after merge

* fix(rln-relay): naming, visibility, tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants