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

chore: expand replication range #885

Merged
merged 6 commits into from Oct 26, 2023
Merged

Conversation

maqi
Copy link
Member

@maqi maqi commented Oct 23, 2023

Description

Summary generated by Reviewpad on 23 Oct 23 14:12 UTC

This pull request expands the replication range in the code. It modifies the sn_networking/src/cmd.rs, sn_networking/src/lib.rs, and sn_node/src/replication.rs files. The changes include updating the REPLICATE_RANGE constant to be twice the CLOSE_GROUP_SIZE, and using this new range in the code logic to determine whether a peer is in the close range. The patch also involves making adjustments to the replication process based on whether the target peer is a dead peer or a new peer.

@reviewpad reviewpad bot added Small Pull request is small waiting-for-review labels Oct 23, 2023
@reviewpad reviewpad bot added Large Large sized PR and removed Small Pull request is small labels Oct 24, 2023
// Blindly sent to validation to allow double spend can be detected.
// TODO: consider avoid throw duplicated chunk to validation.
// Chunk with existing key do not to be stored again.
// `Spend` or `Register` with same content_hash do not to be stored again,
Copy link
Contributor

Choose a reason for hiding this comment

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

// SpendorRegister with same content_hash do not to be stored again,

do need to be stored no?

Copy link
Member Author

Choose a reason for hiding this comment

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

that's for the case of same key AND same content_cash, so do not need to be stored again

@maqi maqi force-pushed the expand_replication_range branch 3 times, most recently from c90b054 to 40f814f Compare October 25, 2023 13:13
@reviewpad
Copy link

reviewpad bot commented Oct 25, 2023

Reviewpad Report

‼️ Errors

  • Unconventional commit detected: 'Revert "ci: Register test negation"

This reverts commit df8b357.' (17b5f89)

@joshuef joshuef added this pull request to the merge queue Oct 26, 2023
Merged via the queue into maidsafe:main with commit 4dee4ef Oct 26, 2023
28 checks passed
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