-
Notifications
You must be signed in to change notification settings - Fork 116
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
dot/rpc: Implement RPC author_insertKey #765
Conversation
@edwardmack I think just putting them into the keystore as you're doing right now is okay, and yeah they should be sr25519 keys. in the future we should probably have separate keystores for babe, grandpa, etc. let's make an issue for that |
dot/rpc/modules/author_test.go
Outdated
} | ||
|
||
// newTestService creates a new test core service | ||
func newTestService(t *testing.T, cfg *core.Config) *core.Service { |
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.
maybe we could move this to dot/core/test_helpers.go and export it? just so we don't need to duplicate code
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.
Good idea!
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.
looking good!
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.
This looks good to me. Nice work!
* add InsertKey interface * implement author_insertKey * lint issues * added tests for author_insertKey * remove unnecessary logging * fix imports merge conflict * move newTestSerice to test_helper.go and make public
This PR introduces implementation of RPC call author_insertKey, which inserts the given key into the core keystore. Defined in https://github.com/w3f/PSPs/blob/psp-rpc-api/psp-002.md#author_insertKey
Changes
Tests:
AND
Issues: