CatapultServer
v0.5.0.1 (Elephant)
|
Go to the documentation of this file.
27 namespace catapult {
namespace ionet {
class PacketIo; } }
48 const Key& remotePublicKey,
std::vector< model::CosignedTransactionInfo > CosignedTransactionInfos
A vector of cosigned (partial) transaction infos.
Definition: PtTypes.h:30
RemotePtApi(const Key &remotePublicKey)
Creates a remote api for the node with specified public key (remotePublicKey).
Definition: RemotePtApi.h:35
Represents a range of entities.
Definition: EntityRange.h:31
std::unique_ptr< RemotePtApi > CreateRemotePtApi(ionet::PacketIo &io, const Key &remotePublicKey, const model::TransactionRegistry ®istry)
Definition: RemotePtApi.cpp:76
RemoteRequestDispatcher m_impl
Definition: RemotePtApi.cpp:72
static constexpr auto Friendly_Name
Definition: RemotePtApi.cpp:36
RegistryDependentTraits(const model::TransactionRegistry ®istry)
Creates traits around registry.
Definition: RemoteApiUtils.h:34
An api for retrieving partial transaction information from a remote node.
Definition: RemotePtApi.h:32
An interface for reading and writing packets.
Definition: PacketIo.h:31
model::EntityRange< ShortHashPair > ShortHashPairRange
An entity range composed of short hash pairs.
Definition: ShortHashPair.h:54
Provides a way to access the result of an asynchronous operation.
Definition: Future.h:29
const Key & remotePublicKey() const
Gets the remote node public key.
Definition: RemoteApi.h:38
static PacketPayload FromFixedSizeRange(PacketType type, model::EntityRange< TStructure > &&range)
Creates a packet payload with the specified packet type around a fixed size structure range.
Definition: PacketPayloadFactory.h:45
const model::TransactionRegistry & m_registry
Definition: RemotePtApi.cpp:71
CosignedTransactionInfos ExtractCosignedTransactionInfosFromPacket(const ionet::Packet &packet, const TransactionPredicate &isValid)
Definition: CosignedTransactionInfoParser.cpp:84
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: RemotePtApi.cpp:35
virtual thread::future< partialtransaction::CosignedTransactionInfos > transactionInfos(cache::ShortHashPairRange &&knownShortHashPairs) const =0
Gets all partial transaction infos from the remote excluding those with all hashes in knownShortHashP...
Base class for wrappers of byte array types, to provide some type-safety.
Definition: ByteArray.h:29
utils::ByteArray< Key_Size, Key_tag > Key
Definition: src/catapult/types.h:41