CatapultServer
v0.5.0.1 (Elephant)
|
Go to the documentation of this file.
25 namespace catapult {
namespace chain {
28 template<
typename TSynchronizerTraits>
44 return m_traits.apiCall(api).then([&traits =
m_traits, sourcePublicKey = api.remotePublicKey()](
auto&& rangeFuture) {
46 auto range = rangeFuture.get();
48 return ionet::NodeInteractionResultCode::Neutral;
51 traits.consume(std::move(range), sourcePublicKey);
52 return ionet::NodeInteractionResultCode::Success;
55 return ionet::NodeInteractionResultCode::Failure;
#define CATAPULT_LOG(SEV)
Writes a log entry to the default logger with SEV severity.
Definition: Logging.h:340
def debug(*args)
Definition: Parser.py:46
def warning(*args)
Definition: colorPrint.py:10
Provides a way to access the result of an asynchronous operation.
Definition: Future.h:29
An entities synchronizer.
Definition: EntitiesSynchronizer.h:29
static constexpr auto Name
Definition: PtSynchronizer.cpp:31
NodeInteractionFuture operator()(const RemoteApiType &api)
Pulls entities from a remote node using api.
Definition: EntitiesSynchronizer.h:43
Definition: AddressExtractionExtension.cpp:28
Base class for all catapult exceptions that derives from both std::exception and boost::exception.
Definition: exceptions.h:42
TSynchronizerTraits m_traits
Definition: EntitiesSynchronizer.h:61
EntitiesSynchronizer(TSynchronizerTraits &&traits)
Creates an entities synchronizer around traits.
Definition: EntitiesSynchronizer.h:38
typename TSynchronizerTraits::RemoteApiType RemoteApiType
Definition: EntitiesSynchronizer.h:31