CatapultServer
v0.5.0.1 (Elephant)
|
Go to the documentation of this file.
26 namespace ionet {
class PacketIo; }
27 namespace model {
class TransactionRegistry; }
78 const Key& remotePublicKey,
virtual thread::future< std::shared_ptr< const model::Block > > blockAt(Height height) const =0
Gets the block at height.
std::unique_ptr< RemoteChainApi > CreateRemoteChainApi(ionet::PacketIo &io, const Key &remotePublicKey, const model::TransactionRegistry ®istry)
Definition: RemoteChainApi.cpp:164
BlocksFromOptions(uint32_t numBlocks, uint32_t numBytes)
Definition: RemoteChainApi.h:40
RemoteRequestDispatcher m_impl
Definition: RemoteChainApi.cpp:155
utils::BaseValue< uint64_t, Height_tag > Height
Definition: src/catapult/types.h:85
An api for retrieving chain information from a node.
Definition: ChainApi.h:40
uint32_t NumBytes
Requested number of bytes.
Definition: RemoteChainApi.h:49
static constexpr auto Friendly_Name
Definition: RemoteChainApi.cpp:36
BlocksFromOptions()
Creates blocks-from options.
Definition: RemoteChainApi.h:35
std::unique_ptr< ChainApi > CreateRemoteChainApiWithoutRegistry(ionet::PacketIo &io)
Creates a chain api for interacting with a remote node with the specified io.
Definition: RemoteChainApi.cpp:159
RegistryDependentTraits(const model::TransactionRegistry ®istry)
Creates traits around registry.
Definition: RemoteApiUtils.h:34
An interface for reading and writing packets.
Definition: PacketIo.h:31
virtual thread::future< model::BlockRange > blocksFrom(Height height, const BlocksFromOptions &options) const =0
uint32_t NumBlocks
Requested number of blocks.
Definition: RemoteChainApi.h:46
Provides a way to access the result of an asynchronous operation.
Definition: Future.h:29
const model::TransactionRegistry * m_pRegistry
Definition: RemoteChainApi.cpp:154
const Key & remotePublicKey() const
Gets the remote node public key.
Definition: RemoteApi.h:38
EntityRange< Hash256 > HashRange
An entity range composed of hashes.
Definition: RangeTypes.h:35
virtual thread::future< std::shared_ptr< const model::Block > > blockLast() const =0
Gets the last block.
EntityRange< Block > BlockRange
An entity range composed of blocks.
Definition: RangeTypes.h:29
model::ChainScore ChainScore
Definition: tools/health/main.cpp:43
Definition: AddressExtractionExtension.cpp:28
An api for retrieving information from a remote node.
Definition: RemoteApi.h:27
A registry of transaction plugins.
Definition: TransactionPlugin.h:98
static constexpr auto Packet_Type
Definition: RemoteChainApi.cpp:35
Base class for wrappers of byte array types, to provide some type-safety.
Definition: ByteArray.h:29
RemoteChainApi(const Key &remotePublicKey)
Creates a remote api for the node with specified public key (remotePublicKey).
Definition: RemoteChainApi.h:56
utils::ByteArray< Key_Size, Key_tag > Key
Definition: src/catapult/types.h:41
Options for a blocks-from request.
Definition: RemoteChainApi.h:33
An api for retrieving chain information from a remote node.
Definition: RemoteChainApi.h:53