CatapultServer  v0.5.0.1 (Elephant)
LocalChainApi.h
Go to the documentation of this file.
1 
21 #pragma once
22 #include "ChainApi.h"
23 #include "catapult/functions.h"
24 
25 namespace catapult { namespace io { class BlockStorageCache; } }
26 
27 namespace catapult { namespace api {
28 
30  std::unique_ptr<ChainApi> CreateLocalChainApi(
31  const io::BlockStorageCache& storage,
32  const model::ChainScoreSupplier& chainScoreSupplier);
33 }}
LocalChainApi.h
catapult::Height
utils::BaseValue< uint64_t, Height_tag > Height
Definition: src/catapult/types.h:85
catapult::api::CreateLocalChainApi
std::unique_ptr< ChainApi > CreateLocalChainApi(const io::BlockStorageCache &storage, const model::ChainScoreSupplier &chainScoreSupplier)
Creates a chain api around the specified storage and chain score supplier (chainScoreSupplier).
Definition: LocalChainApi.cpp:62
ChainApi.h
m_storage
const io::BlockStorageCache & m_storage
Definition: LocalChainApi.cpp:57
functions.h
catapult::model::ChainScoreSupplier
supplier< ChainScore > ChainScoreSupplier
Prototype for a function that returns a chain score.
Definition: ChainScore.h:120
catapult::exception_detail::Make::From
static auto From(const T &value)
Creates a boost::error_info with the specified value.
Definition: exceptions.h:134
catapult::io::BlockStorageCache
Definition: BlockStorageCache.h:97
forwardsValidation.info
def info(*args)
Definition: forwardsValidation.py:12
catapult::thread::make_ready_future
future< T > make_ready_future(T &&value)
Produces a future that is ready immediately and holds the given value.
Definition: Future.h:126
catapult
Definition: AddressExtractionExtension.cpp:28
m_chainScoreSupplier
model::ChainScoreSupplier m_chainScoreSupplier
Definition: LocalChainApi.cpp:58
BlockStorageCache.h