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

encapsulate LC data variables into single structure #3777

Merged
merged 6 commits into from
Jun 24, 2022

Conversation

etan-status
Copy link
Contributor

Combines the LC data configuration options (serve / importMode), the
callbacks (finality / optimistic LC update) as well as the cache storing
light client data, into a new LightClientDataStore structure.
Also moves the structure into a light client specific file.

Combines the LC data configuration options (serve / importMode), the
callbacks (finality / optimistic LC update) as well as the cache storing
light client data, into a new `LightClientDataStore` structure.
Also moves the structure into a light client specific file.
@github-actions
Copy link

github-actions bot commented Jun 19, 2022

Unit Test Results

     12 files  ±0     857 suites  ±0   56m 58s ⏱️ - 5m 21s
1 716 tests ±0  1 664 ✔️ ±0    52 💤 ±0  0 ±0 
9 960 runs  ±0  9 832 ✔️ ±0  128 💤 ±0  0 ±0 

Results for commit c8e1cd7. ± Comparison against base commit e25cfe5.

♻️ This comment has been updated with latest results.

@@ -79,3 +79,26 @@ type

importTailSlot*: Slot
## The earliest slot for which light client data is imported.

LightClientDataStore* = object
Copy link
Member

Choose a reason for hiding this comment

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

technically, this is a "light server" store

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, haha, but that terminology is nowhere used yet, so sticking with "light client data" for now (technically, a client could also cache the obtained data and then provide it to others, or use it to roll-back in case it fails to advance when there is no supermajority, so use case of this data is not limited to just server)

@etan-status etan-status merged commit 2e98c77 into unstable Jun 24, 2022
@etan-status etan-status deleted the dev/etan/lc-datastore branch June 24, 2022 14:57
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.

2 participants