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

support new TrustedCalls, TrustedGetters and PublicGetters for Notes #119

Closed
brenzi opened this issue Nov 8, 2024 · 0 comments · Fixed by #120
Closed

support new TrustedCalls, TrustedGetters and PublicGetters for Notes #119

brenzi opened this issue Nov 8, 2024 · 0 comments · Fixed by #120
Assignees

Comments

@brenzi
Copy link
Member

brenzi commented Nov 8, 2024

integritee-network/worker#1642

  • TrustedGetter::notes_for
  • PublicGetter::note_buckets_info
  • TrustedCall::balance_transfer_with_note

I'd like to leave some bucket logic to the client to reduce bandwidth. Therefore, I expect clients to do the following:

init:

  1. PublicGetter::note_buckets_info -> get first and last relevant bucket index
  2. for each bucket index: get all notes for A TrustedGetter::notes_for

poll:

  1. TrustedGetter::notes_for -> only latest bucket should be polled as all the others won't get new notes
  2. monitor bucket rollover: PublicGetter::note_buckets_info` new latest bucket?
  3. if new bucket, only poll that from now on
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 a pull request may close this issue.

2 participants