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

[RPC Change] Move validateMessageNumber method to arbdebug ns #2514

Merged
merged 1 commit into from
Jul 23, 2024

Conversation

Tristan-Wilson
Copy link
Member

This is a debugging related call, changed namespace to make it clear.

Fixes NIT-2682

This is a debugging related call, changed namespace to make it clear.
@cla-bot cla-bot bot added the s Automatically added by the CLA bot if the creator of a PR is registered as having signed the CLA. label Jul 23, 2024
Copy link
Member

@eljobe eljobe left a comment

Choose a reason for hiding this comment

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

LGTM.

Just think about the migration path for existing clients.

@@ -779,7 +779,7 @@ func CreateNode(
}
if currentNode.StatelessBlockValidator != nil {
apis = append(apis, rpc.API{
Namespace: "arbvalidator",
Namespace: "arbdebug",
Copy link
Member

Choose a reason for hiding this comment

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

Do we need to worry about existing clients of the API which might still be expecting it in the previous namespace?
(i.e. Should we expose the same method in both the old and new namespace for a transition period?)

Copy link
Member Author

Choose a reason for hiding this comment

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

Totally see your point. From my understanding of the issue, I think we're breaking them deliberately since it wasn't supposed to be exposed in that namespace originally.

Copy link
Contributor

Choose a reason for hiding this comment

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

We're deliberately moving it to stress the point that this is a debug functionality and not the way to validate blocks (because you must validate all blocks up to X to validate X).
If anyone is using this interface today they are probably wrong, and should use block_validator instead.

@Tristan-Wilson Tristan-Wilson enabled auto-merge July 23, 2024 13:33
@Tristan-Wilson Tristan-Wilson merged commit f9deef6 into master Jul 23, 2024
15 checks passed
@Tristan-Wilson Tristan-Wilson deleted the move-validateMessageNumber-namespace branch July 23, 2024 15:10
@tsahee tsahee changed the title Move validateMessageNumber method to arbdebug ns [RPC Change] Move validateMessageNumber method to arbdebug ns Jul 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
design-approved s Automatically added by the CLA bot if the creator of a PR is registered as having signed the CLA.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants