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

Algo to give k ranked miners for store #45

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from
Draft

Conversation

rishiad
Copy link
Contributor

@rishiad rishiad commented Jan 23, 2025

Given that erasure coding provides us with a guarantee that we can recover the file even after a 30% loss of the data pieces. We can use this assign 70% of the pieces (mix of data and parity pieces) to higher ranking miners and 30% of the pieces (only data pieces) to lower ranking miners to allow them to build trust and rank in the network.

Introduces top_miner_ratio setting

Closes #3

Copy link
Contributor

@Shr1ftyy Shr1ftyy left a comment

Choose a reason for hiding this comment

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

Great work. I think there's just some smol changes that need to be made.

storb/util/uids.py Outdated Show resolved Hide resolved
storb/util/uids.py Outdated Show resolved Hide resolved
storb/validator/piece_processing.py Outdated Show resolved Hide resolved
storb/util/uids.py Outdated Show resolved Hide resolved
@rishiad rishiad marked this pull request as draft January 25, 2025 10:39
@rishiad
Copy link
Contributor Author

rishiad commented Jan 25, 2025

There seems to be bug where the files aren't reconstructed properly

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.

Miner Candidate Selection Algorithm
3 participants