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

NoStoreCost if existing #875

Merged
merged 2 commits into from Oct 22, 2023
Merged

Conversation

joshuef
Copy link
Contributor

@joshuef joshuef commented Oct 21, 2023

This shoudl be sufficient with replication increased.## Description

Summary generated by Reviewpad on 21 Oct 23 13:17 UTC

This pull request includes two patches.

The first patch is a chore to the client, specifically in the api.rs file. It changes the GetQuorum parameter in the get_record_from_network function call from GetQuorum::All to GetQuorum::Majority. This change is made to ensure that chunks only reach the majority in replication scenarios.

The second patch is a feature addition to the protocol, involving multiple files. It allows nodes to error StoreCosts if they already have the data. This change means that clients won't keep repaying for data that is already stored somewhere. It aims to simplify repayment/updates and prevent looping over ever-increasing prices when the nodes already have the data stored.

Overall, these patches aim to improve the efficiency and reliability of the codebase.

@reviewpad reviewpad bot added Small Pull request is small waiting-for-review labels Oct 21, 2023
@joshuef joshuef changed the title chore(client): verify chunks only reach majority. NoStoreCost if existing Oct 21, 2023
@reviewpad
Copy link

reviewpad bot commented Oct 21, 2023

Reviewpad Report

‼️ Errors

  • Unconventional title detected: 'NoStoreCost if existing' illegal 'N' character in commit message type: col=00

This means clients wont keep repaying for data already stored somewhere.
And so should make repayment/updates simpler and hopefully prevent looping over ever increasing prices (when those nodes already have the data stored)
@joshuef joshuef merged commit 96b944d into maidsafe:main Oct 22, 2023
27 of 28 checks passed
@joshuef joshuef deleted the NoStoreCostIfRecordExists branch October 22, 2023 12:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Small Pull request is small
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant