Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Make queryStorage and storagePairs unsafe RPC functions #7342

Merged
merged 1 commit into from
Oct 18, 2020

Conversation

bkchr
Copy link
Member

@bkchr bkchr commented Oct 16, 2020

The RPC calls can be rather expensive and can easily bring a RPC node in
some problems ;)

Fixes: #7302

@jacogr as we spoke, that shouldn't be anything that is used actively by the UI?

The RPC calls can be rather expensive and can easily bring a RPC node in
some problems ;)
@bkchr bkchr added A0-please_review Pull request needs code review. B5-clientnoteworthy C3-medium PR touches the given topic and has a medium impact on builders. labels Oct 16, 2020
@bkchr bkchr requested review from tomusdrw and jacogr October 16, 2020 15:45
@jacogr
Copy link
Contributor

jacogr commented Oct 16, 2020

100% - there can be used as fallbacks when e.g. the node doesn't support queryStorageAt (which is paged). Only actually gets used on 2.0-alpha nodes.

Will test-through with this branch anyway.

@tomusdrw tomusdrw added A8-mergeoncegreen and removed A0-please_review Pull request needs code review. labels Oct 17, 2020
Copy link
Contributor

@jacogr jacogr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm.

@bkchr bkchr merged commit 6fdf3db into master Oct 18, 2020
@bkchr bkchr deleted the bkchr-rpc-unsafe branch October 18, 2020 17:58
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
C3-medium PR touches the given topic and has a medium impact on builders.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

make state_queryStorage unsafe RPC call
3 participants