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

PPC data location debug #672

Closed
wants to merge 44 commits into from

Conversation

RolandSherwin
Copy link
Member

Description

reviewpad:summary

@@ -784,7 +810,13 @@
/// Retry up to `PUT_RECORD_RETRIES` times if we can't verify the record is stored
async fn put_record_with_retries(&self, record: Record) -> Result<()> {
let mut retries = 0;
// TODO: Move this put retry loop up above store cost checks so we can re-put if storecost failed.

Check notice

Code scanning / devskim

A "TODO" or similar was left in source code, possibly indicating incomplete functionality Note

Suspicious comment
sn_node/src/api.rs Dismissed Show dismissed Hide dismissed
@@ -76,5 +83,6 @@
#[derive(Debug, Eq, PartialEq, Clone, Serialize, Deserialize)]
pub struct ChunkWithPayment {
pub chunk: Chunk,
pub payment: PaymentProof,
/// TODO: encrypt this or supply only encrypted derivation index

Check notice

Code scanning / devskim

A "TODO" or similar was left in source code, possibly indicating incomplete functionality Note

Suspicious comment
addr_name,
reason: err.to_string(),
})?;
// TODO: properly verify which one of these was for this node, and check _that_

Check notice

Code scanning / devskim

A "TODO" or similar was left in source code, possibly indicating incomplete functionality Note

Suspicious comment
assert!(matches!(
verify_fee_output_and_proof(name, network_store_cost, &tx, audit_trail, &[]),
Err(err) if err == ProtocolError::PaymentProofInvalidFeeOutput(invalid_fee_id)));
// TODO: sort out what is acceptable based on the network store cost

Check notice

Code scanning / devskim

A "TODO" or similar was left in source code, possibly indicating incomplete functionality Note

Suspicious comment
inputs: vec![],
outputs: vec![],
outputs: tx_payments.clone(),
// TODO: Clean this up when we remove FeeOutput

Check notice

Code scanning / devskim

A "TODO" or similar was left in source code, possibly indicating incomplete functionality Note

Suspicious comment
return Err(ProtocolError::PaymentProofInsufficientAmount { paid, expected });
// the fee output the expected `acceptable_fee` nano per record.
for output in tx.outputs.iter() {
// TODO: Is an output

Check notice

Code scanning / devskim

A "TODO" or similar was left in source code, possibly indicating incomplete functionality Note

Suspicious comment
sn_networking/src/lib.rs Dismissed Show dismissed Hide dismissed
"Trust replicated spend for {:?}",
PrettyPrintRecordKey::from(key.clone())
);
// TODO: may need to tweak the `signed_spend_validation` function,

Check notice

Code scanning / devskim

A "TODO" or similar was left in source code, possibly indicating incomplete functionality Note

Suspicious comment
@reviewpad reviewpad bot requested a review from bochaco August 25, 2023 08:42
@reviewpad reviewpad bot added Large Large sized PR waiting-for-review labels Aug 25, 2023
@reviewpad
Copy link

reviewpad bot commented Aug 25, 2023

Reviewpad Report

‼️ Errors

  • Unconventional commit detected: 'feat!(protocol): remove chunk merkletree to simplify payment

starting to simplify payments to a per chunk basis

A first step in #638' (321cd19)

  • Unconventional commit detected: 'feat!(protocol): get price and pay for each chunk individually' (f670c09)
  • Unconventional commit detected: 'feat!(protocol): gets keys with GetStoreCost' (9a9cb25)
  • Unconventional commit detected: 'timeout increase' (e088905)
  • Unconventional commit detected: 'run 1' (e6204a2)
  • Unconventional commit detected: 'run 2' (f6cc70d)
  • Unconventional commit detected: 'run 3' (2091a99)
  • Unconventional commit detected: 'run 4' (cdae405)
  • Unconventional commit detected: 'run 5' (7e6cbf2)
  • Unconventional commit detected: 'run 6' (83d4a05)
  • Unconventional commit detected: 'run 7' (edacece)
  • Unconventional commit detected: 'run 8' (2dda09b)
  • Unconventional commit detected: 'run 9' (1acee28)
  • Unconventional title detected: 'PPC data location debug' illegal 'P' character in commit message type: col=01

@RolandSherwin RolandSherwin force-pushed the ppc_data_loc_debug branch 6 times, most recently from 7566998 to 1c09bac Compare August 29, 2023 16:41
joshuef and others added 19 commits August 30, 2023 12:15
starting to simplify payments to a per chunk basis

A first step in maidsafe#638
Sets us up to pay every node that will be storing the data.
We GetStoreCost and pay to their key, and put the chunk with the DBCs

This is not yet validated at the node side
This gives maximal resilience as a place to start.
(This is required for data location verification tests eg)
@RolandSherwin
Copy link
Member Author

Closed in favour of #674

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Large Large sized PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants