12 std::function<outcome::result<primitives::Version>()> obtainer) {
15 OUTCOME_TRY(
version, obtainer());
21 outcome::result<primitives::OpaqueMetadata>
24 std::function<outcome::result<primitives::OpaqueMetadata>()> obtainer) {
27 OUTCOME_TRY(metadata, obtainer());
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