feat(cli): skip payment and upload for existing chunks #1069
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Summary generated by Reviewpad on 12 Dec 23 13:13 UTC
This pull request includes the following changes:
sn_cli
module to handle the verification of chunks and payment for storage.sn_client
module to handle payment for chunks and storage, and added a function to skip existing chunks during payment.sn_client
module to handle payment for storage in theClientRegister
struct.sn_client
module to add a list of existing chunks that need to be skipped during payment for storage.sn_client
module to return a list of skipped chunks during payment for storage.sn_node
module to handle storage payment proofs cached in the wallet.storage_payments
module to reflect the changes in payment for storage.Overall, these changes improve the handling of payment for storage and the verification of chunks in the code.