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(stop): added stop_node admin rpc endpoint #391

Closed
wants to merge 51 commits into from

Conversation

Trantorian1
Copy link
Collaborator

@Trantorian1 Trantorian1 commented Nov 20, 2024

Pull Request type

  • Feature

What is the current behavior?

There is no way to stop a Madara node through RPC. This is a small part of an upcoming pr enabling automatic database migration between nodes on a same network.

What is the new behavior?

  • Added node_stop rpc method, which can only be called from the admin rpc endpoint.
  • Rpc methods now have access to their service's tokio_util::sync::CancellationToken through the Starknet struct. This is necessary for the above to be possible.

Warning

This should be merged after #390

Does this introduce a breaking change?

No.

Trantorian1 and others added 30 commits November 18, 2024 12:01
This should be handled by an external proxy anyways.
This currently only contains the `MadaraWriteRpc` methods but will be
used to encapsulate any sensitive admin methods in the future.
@Trantorian1 Trantorian1 changed the title feat(stop): added stop_node admin rpc endpoint to stop a madara node at a distance. feat(stop): added stop_node admin rpc endpoint Nov 20, 2024
@Trantorian1 Trantorian1 self-assigned this Nov 20, 2024
@Trantorian1 Trantorian1 added the enhancement New feature or request label Nov 20, 2024
@Trantorian1 Trantorian1 marked this pull request as ready for review November 20, 2024 17:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants