-
Notifications
You must be signed in to change notification settings - Fork 62
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
fix(network): register record shall not be verified by entire content #2103
fix(network): register record shall not be verified by entire content #2103
Conversation
Would be good to get a test to verify this in some fashion. Not sure how best honestly... And I'm wondering on the impacts here... (not sure how much of this would fall into the scope of this PR, but worth considering.) During replication... do we fetch registers still with this setup? (I see it doesnt really touch flows there). But say, I have v1, and v2 exists... Would we still fetch + merge? Is this purely on the client side saying that we return registers if it's the same address basically... but then how do we verify edits/updates? And if there are updates / divergence, will the |
There is
as explained at https://github.com/maidsafe/safe_network/pull/2103/files#diff-c302643eb99427e41bc3ae0fe33cdf9b841a8d55593fc5f20e132674ecfeb603R78
that's a different question. And the answer is
the
After the merge of PR 2061, the fetched register will be the |
Supporting developers using these APIs is a good way to test this and much else. So long as the plan remains to replace the native token with a blockchain token, I will not help with that but am planning to keep You could also use |
Yeh that'll be the true final test, but just wanting to make sure we have an automated CI step that gets a minimum case in here. |
Aha, okay so we're comparing the final computed value only. To me this is not the If that's the case, i'd suggest renaming the idea of the |
The crdts::MerkleReg document defines the
Here just try to follow that definition.
|
Okay fair enough! @maqi , thanks for clarifying 👍 |
Description
For register record, the get_verification against the entire record value will have a high chance of failure, given the nature of the update_history MerkleReg held by the register.
For register, we can only carry out verification against root value, i.e. the final updated value
Related Issue
#2077
Type of Change
Please mark the types of changes made in this pull request.