6 #ifndef KAGOME_RUNTIME_RUNTIMEPROPERTIESCACHEIMPL 7 #define KAGOME_RUNTIME_RUNTIMEPROPERTIESCACHEIMPL 17 outcome::result<primitives::Version>
getVersion(
19 std::function<outcome::result<primitives::Version>()> obtainer)
22 outcome::result<primitives::OpaqueMetadata>
getMetadata(
24 std::function<outcome::result<primitives::OpaqueMetadata>()> obtainer)
34 #endif // KAGOME_RUNTIME_RUNTIMEPROPERTIESCACHEIMPL std::map< common::Hash256, primitives::Version > cached_versions_
std::map< common::Hash256, primitives::OpaqueMetadata > cached_metadata_
outcome::result< primitives::Version > getVersion(const common::Hash256 &hash, std::function< outcome::result< primitives::Version >()> obtainer) override
outcome::result< primitives::OpaqueMetadata > getMetadata(const common::Hash256 &hash, std::function< outcome::result< primitives::OpaqueMetadata >()> obtainer) override
RuntimePropertiesCacheImpl()=default