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: Social Consensus #349

Merged
merged 4 commits into from
Jun 26, 2023
Merged

Feat: Social Consensus #349

merged 4 commits into from
Jun 26, 2023

Conversation

TheMarstonConnell
Copy link
Member

Providers and users alike can now submit report forms that active providers will then fill out. If 60% of the providers agree that the provider currently responsible for the deal is misbehaving (no open download routes, file timing out, etc.) it will drop the deal from that machine and become a stray. If this deal is the only copy (malicious upload) it is dropped from the network entirely. If it is available on other machines, the new deal holder will be able to replenish the copy from other providers.

@TheMarstonConnell TheMarstonConnell added the enhancement New feature or request label Jun 22, 2023
@TheMarstonConnell TheMarstonConnell self-assigned this Jun 22, 2023
@codecov
Copy link

codecov bot commented Jun 22, 2023

Codecov Report

Merging #349 (6ce5f38) into master (79a9ead) will increase coverage by 0.24%.
The diff coverage is 43.12%.

❗ Current head 6ce5f38 differs from pull request most recent head 6199bcd. Consider uploading reports for the commit 6199bcd to get more accurate results

@@            Coverage Diff             @@
##           master     #349      +/-   ##
==========================================
+ Coverage   47.01%   47.26%   +0.24%     
==========================================
  Files         237      241       +4     
  Lines        8716     8890     +174     
==========================================
+ Hits         4098     4202     +104     
- Misses       4361     4425      +64     
- Partials      257      263       +6     
Impacted Files Coverage Δ
x/storage/keeper/rewards.go 48.24% <0.00%> (+3.17%) ⬆️
x/storage/types/key_providers.go 20.00% <0.00%> (-5.00%) ⬇️
x/storage/types/message_attest.go 0.00% <0.00%> (ø)
x/storage/types/message_report.go 0.00% <0.00%> (ø)
x/storage/keeper/grpc_query_report.go 22.85% <22.85%> (ø)
x/storage/keeper/msg_server_report.go 57.42% <57.42%> (ø)
x/storage/keeper/contract_killing.go 54.16% <81.25%> (+54.16%) ⬆️
x/storage/keeper/reports.go 100.00% <100.00%> (ø)

... and 4 files with indirect coverage changes

@TheMarstonConnell TheMarstonConnell merged commit 1af5639 into master Jun 26, 2023
@TheMarstonConnell TheMarstonConnell deleted the report-forms branch June 26, 2023 15:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants