Make queryStorage and storagePairs unsafe RPC functions (#7342)

The RPC calls can be rather expensive and can easily bring a RPC node in
some problems ;)
This commit is contained in:
Bastian Köcher authored and GitHub committed 2020-10-18 19:58:52 +02:00
1 parent 13be04e0a7
commit 74e8691aa8
4 files changed
+64 -12

No files matched your search

@@ -51,6 +51,8 @@ pub enum Error {
/// Maximum allowed value
max: u32,
},
/// Call to an unsafe RPC was denied.
UnsafeRpcCalled(crate::policy::UnsafeRpcError),
}
impl std::error::Error for Error {