Remove support for chainHead_storage for light client

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
This commit is contained in:
Alexandru Vasile committed 2023-05-25 17:47:52 +03:00
1 parent f405c897dc
commit 8e46da77ee
3 files changed
+2 -30

No files matched your search

-9
View File
@@ -509,16 +509,7 @@ pub enum FollowEvent<Hash> {
#[serde(rename_all = "camelCase")]
pub struct ChainHeadResult<T> {
/// Result of the method.
#[cfg(not(feature = "unstable-light-client"))]
pub result: T,
/// Result of the method.
///
/// # Note
///
/// `chainHead_body` returns a vector of values, while
/// `chainHead_storage` returns just one plain element.
#[cfg(feature = "unstable-light-client")]
pub value: T,
}
/// The event generated by the body / call / storage methods.