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请求author_rotateKeys返回Method not found #243

Closed
sidealice opened this issue Jul 1, 2021 · 4 comments
Closed

rpc请求author_rotateKeys返回Method not found #243

sidealice opened this issue Jul 1, 2021 · 4 comments

Comments

@sidealice
Copy link

验证者需要有keys,我输入以下命令
curl -sH "Content-Type: application/json" -d '{"id":1, "jsonrpc":"2.0", "method": "author_rotateKeys", "params":[]}' http://node:9933
返回
{"jsonrpc":"2.0","error":{"code":-32601,"message":"Method not found"},"id":1}
是否需要对节点额外进行配置启动命令,比如在启动的时候需要设置--key='newkey'的参数?

@sidealice
Copy link
Author

rpc.rs

/// Generate new session keys and returns the corresponding public keys.
pub async fn rotate_keys(&self) -> Result<Bytes, Error> {
    self.rpc.rotate_keys().await
}

@sidealice sidealice changed the title 请求author_rotateKeys返回Method not found rpc请求author_rotateKeys返回Method not found Jul 1, 2021
@h4x3rotab
Copy link
Contributor

paritytech/polkadot#1082

@sidealice
Copy link
Author

谢谢。我试一下。

@sidealice
Copy link
Author

我刚刚试了最新的dev节点,有返回结果了。 谢谢!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants