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(register)!: network only store ops list #2136

Merged
merged 1 commit into from
Oct 10, 2024

Conversation

maqi
Copy link
Member

@maqi maqi commented Sep 24, 2024

BREAKING CHANGE!

crdt MerkleReg only stored in client locally
node side only store ops list (signed by owner)

@maqi maqi force-pushed the refactor_register branch from 04916f1 to 0275fac Compare September 24, 2024 20:13
autonomi/src/client/registers.rs Outdated Show resolved Hide resolved
autonomi/src/client/registers.rs Outdated Show resolved Hide resolved

/// Register data type as a CRDT with Access Control
#[derive(Clone, Debug, Serialize, Deserialize, PartialEq, Eq, Hash, PartialOrd)]
pub(crate) struct RegisterCrdt {
pub struct RegisterCrdt {
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there a specific motivation for making these items pub?

Copy link
Contributor

@happybeing happybeing Sep 30, 2024

Choose a reason for hiding this comment

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

@b-zee I think that's needed so that the API can expose the MerkleReg. That's necessary for access to the history, and without it usefulness of Registers becomes very limited. Not useful really!

You can look at/use the awe inspect-register command and implementation for some of the things that are needed.

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes, we do want to expose the underlying register. But that would be the MerkleReg type. Our RegisterCrdt is not something we want to promise anything about for the future.

@maqi maqi force-pushed the refactor_register branch from 0275fac to 09c72e4 Compare September 26, 2024 10:34
@maqi maqi added DoNotMerge and removed DoNotMerge labels Oct 1, 2024
@maqi maqi force-pushed the refactor_register branch from 09c72e4 to 475bd0d Compare October 10, 2024 14:58
BREAKING CHANGE!

crdt MerkleReg only stored in client locally
node side only store ops list (signed by owner)
@maqi maqi force-pushed the refactor_register branch from 475bd0d to c214a4d Compare October 10, 2024 17:03
@maqi maqi added this pull request to the merge queue Oct 10, 2024
Merged via the queue into maidsafe:main with commit dd34375 Oct 10, 2024
20 checks passed
@maqi maqi deleted the refactor_register branch October 10, 2024 20:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants