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

Figure out how to post the worker metrics on-chain #68

Open
dzhelezov opened this issue Jul 6, 2023 · 4 comments
Open

Figure out how to post the worker metrics on-chain #68

dzhelezov opened this issue Jul 6, 2023 · 4 comments
Assignees

Comments

@dzhelezov
Copy link
Contributor

The worker reward for each epoch depends on:

  • The amount of data processed
  • The amount of data stored (counted as Gb * sec)
  • The number of previous epochs it is online
  • The number of pings received
  • The amount of SQD delegated to the worker

We need to figure out:

  • how to make this information available on-chain in order to calculated the worker reward for each epoch
  • how to make sure that the provided information is valid
@dzhelezov
Copy link
Contributor Author

One possible solution/direction: worker received signed responses from the router acknowledging that the submitted logs with pings were received. If the worker can submit the data on-chain to challenge the data submitted by the router if it is not sound.

@dzhelezov dzhelezov changed the title Figure out how to post worker metrics on-chain Figure out how to post the worker metrics on-chain Jul 6, 2023
@dzhelezov
Copy link
Contributor Author

streamr.network <- decentralized messaging with the option to keep history

@vanruch
Copy link

vanruch commented Jul 11, 2023

Researched streamr, managed to test stream creation, write/read. One small problem is they only have JS lib, so for a worker written in Rust, we'll need to have a streamr-broker process going, like described here, which may make worker setup a bit trickier

@dzhelezov
Copy link
Contributor Author

Actually our workers are written in Python (see archive-py repo)

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

No branches or pull requests

2 participants