-
Notifications
You must be signed in to change notification settings - Fork 232
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: deprecated rpc method by adding deprecated.
prefix to the rpc name
#2251
Conversation
deprecated.
prefix to the rpc namedeprecated.
prefix to the rpc name
38d0833
to
58b7ef3
Compare
58b7ef3
to
94f9ddc
Compare
According to #2247, we need a window to notify that an RPC has been deprecated. During the window, users must be able to continue using the methods without any changes. And I think renaming the RPC method name is not a friend deprecation mechanism, it requires updating client code. I prefer the solution used by bitcoin, in which user must listed the enabled deprecated methods in the command line arguments. |
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.
We need a two stage deprecation mechanism, see #2247
this PR doesn't rename rpc method, please review again, thanks. |
bors r=doitian,yangby-cryptape |
2251: feat: deprecated rpc method by adding `deprecated.` prefix to the rpc name r=doitian,yangby-cryptape a=quake resolve #2247, rpc method can be deprecated by adding `deprecated.` prefix to the rpc name: ```diff + #[rpc(name = "deprecated.get_cells_by_lock_hash")] - #[rpc(name = "get_cells_by_lock_hash")] fn get_cells_by_lock_hash ``` Co-authored-by: quake <quake.wang@gmail.com>
Build failed: |
bors r=doitian,zhangsoledad,yangby-cryptape |
Build succeeded: |
resolve #2247, rpc method can be deprecated by adding
deprecated.
prefix to the rpc name: