-
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 state_getKeysPaged #1310
Conversation
…e/gossamer into ed/implement_state_getKeysPaged
dot/state/storage.go
Outdated
hash = &sr | ||
} | ||
|
||
return s.tries[*hash].GetKeysWithPrefix(prefix), nil |
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.
can you error or load trie from database in the case s.tries[*hash]
is nil?
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.
yes, good catch. All set.
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.
great work!
Edward Mack: [dot/rpc] implement RPC state_getKeysPaged (#1310) * implement getKeysPaged RPC and storage functions * add tests for state_getKeysPaged * use GetKeysWithPrefix for RPC call * fix GetKeysWithPrefix * add go.sum * add check if trie is nil Co-authored-by: noot <[email protected]>
Changes
state_getKeysPaged
and tests.Tests
Checklist
Issues