-
Notifications
You must be signed in to change notification settings - Fork 289
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!: incorporates ParitySharesNamespace and TailPaddingNamespace into IsReserved function #2194
Merged
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
89b0b20
includes parity namespace and tail padding namespace in the IsReserved
staheri14 3ff0262
deletes unnecessary calls to IsParityShare and IsTailPadding
staheri14 6a3c1c2
changes a var name
staheri14 3ca80a0
Merge branch 'main' into sanaz/extends-is-reserved-namespace
staheri14 0da6cb3
renames MaxReservedNamespace to MaxPrimaryReservedNamespace
staheri14 81e72da
Merge remote-tracking branch 'origin/sanaz/extends-is-reserved-namesp…
staheri14 ad875d7
edits the const description
staheri14 4e8d911
renames a var
staheri14 1768e62
addresses comments
staheri14 bbffdf3
updates specs
staheri14 7c76ff6
updates the table
staheri14 d3b29c8
Merge branch 'main' into sanaz/extends-is-reserved-namespace
staheri14 c0cf2cd
Merge branch 'main' into sanaz/extends-is-reserved-namespace
staheri14 4658131
addresses editorial comments
staheri14 b9fdc3c
Merge remote-tracking branch 'origin/sanaz/extends-is-reserved-namesp…
staheri14 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are these errors used anywhere else? Do we want to remove them if they aren't used anywhere?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After integrating this PR, there will be no active usage for
ErrParitySharesNamespace
in the app. I also initially thought of deleting it, however, there are other unused errors among the existing registered errors e.g., ErrInvalidShareCommitments, so I decided to keep it as is. @rootulp Do you think there will be future usage for this error?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't expect future usages of
ErrParitySharesNamespace
so it seems feasible to remove but we can def do in a follow-up issue / PR.One question I have is: when we delete errors that are no longer used, do we need to reserve the error code indefinitely or can it be repurposed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On a related note, sometimes some errors are not used but kept so that their code number is not replaced by some other error which might break downstream for people depending on it
Edit: Rootul front ran me :D
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not too sure who uses the error code since the message is always accompanied with it in the response but I'd tend to agree that safest thing to do would be to reserve it (just by leaving a comment probably)