CatapultServer
v0.5.0.1 (Elephant)
|
Go to the documentation of this file.
25 inline namespace v_noabi {
26 namespace array {
class view; }
31 namespace types {
struct b_binary; }
35 namespace mongocxx {
inline namespace v_noabi {
class cursor; } }
std::unique_ptr< RemoteNodeApi > CreateRemoteNodeApi(ionet::PacketIo &io)
Creates a node api for interacting with a remote node with the specified io.
Definition: RemoteNodeApi.cpp:87
#define CATAPULT_LOG(SEV)
Writes a log entry to the default logger with SEV severity.
Definition: Logging.h:340
uint32_t m_numThreads
Definition: tools/benchmark/main.cpp:117
std::string m_nemesisPropertiesFilePath
Definition: tools/nemgen/main.cpp:97
Open file for both reading and writing. Removes the file if it exists.
const model::BlockChainConfiguration BlockChain
Block chain configuration.
Definition: CatapultConfiguration.h:48
constexpr void HexFormat(const ByteArray< N, TTag > &)
utils::BaseValue< uint32_t, ServiceIdentifier_tag > ServiceIdentifier
Definition: NodeInfo.h:56
std::string m_resourcesPath
Definition: tools/network/main.cpp:344
Definition: MapperInclude.h:35
uint32_t m_dataSize
Definition: tools/benchmark/main.cpp:120
int main(int argc, const char **argv)
Definition: tools/benchmark/main.cpp:125
Definition: MapperInclude.h:24
int main(int argc, const char **argv)
Definition: tools/address/main.cpp:142
int main(int argc, const char **argv)
Definition: src/catapult/process/broker/main.cpp:36
def warning(*args)
Definition: colorPrint.py:10
utils::BaseValue< uint64_t, Height_tag > Height
Definition: src/catapult/types.h:85
ValidationResult
Enumeration of all possible validation results.
Definition: ValidationResult.h:51
std::string m_secretKey
Definition: tools/address/main.cpp:133
bool ShouldEnableVerifiableState
true if block chain should calculate state hashes so that state is fully verifiable at each block.
Definition: BlockChainConfiguration.h:39
bool ShouldUseCacheDatabaseStorage
true if cache data should be saved in a database.
Definition: NodeConfiguration.h:48
Validation result is success.
ionet::Node Local
Definition: tools/network/main.cpp:42
std::unique_ptr< Broker > CreateBroker(std::unique_ptr< extensions::ProcessBootstrapper > &&pBootstrapper)
Creates and boots a broker around the specified bootstrapper (pBootstrapper).
Definition: Broker.cpp:127
Level for logging fatal events.
const NodeConfiguration Node
Node configuration.
Definition: CatapultConfiguration.h:51
std::unique_ptr< RecoveryOrchestrator > CreateRecoveryOrchestrator(std::unique_ptr< extensions::ProcessBootstrapper > &&pBootstrapper)
Creates and boots a recovery orchestrator around the specified bootstrapper (pBootstrapper).
Definition: RecoveryOrchestrator.cpp:256
model::EntityRange< model::DiagnosticCounterValue > DiagnosticCounters
Definition: tools/health/main.cpp:44
static auto FromPrivate(PrivateKey &&privateKey)
Creates a key pair from privateKey.
Definition: KeyPair.h:41
static PrivateKey Generate(const supplier< uint8_t > &generator)
Generates a new private key using the specified byte generator.
Definition: PrivateKey.cpp:77
int main(int argc, const char **argv)
Definition: tools/network/main.cpp:349
bool TryParseValue(const std::string &networkName, NetworkIdentifier &networkIdentifier)
Tries to parse networkName into a network identifier (networkIdentifier).
Definition: NetworkInfo.cpp:44
Level for logging error events.
ionet::Node Node
Definition: tools/health/main.cpp:41
auto Sum(const TContainer &container, TFunction accessor)
Definition: Functional.h:39
int main(int argc, const char **argv)
Definition: tools/health/main.cpp:214
Validation result is neither success nor failure.
Level for logging debug events.
Level for logging informational events.
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
Level for logging trace events.
Exit immediately after process host creation.
std::string m_resourcesPath
Definition: tools/health/main.cpp:209
Height ChainHeight
Definition: tools/health/main.cpp:42
size_t m_cellWidth
Definition: tools/network/main.cpp:272
std::unordered_set< Node, NodeHasher > NodeSet
A set of nodes.
Definition: Node.h:128
std::unique_ptr< LocalNode > CreateLocalNode(const crypto::KeyPair &keyPair, std::unique_ptr< extensions::ProcessBootstrapper > &&pBootstrapper)
Creates and boots a local node around the specified key pair (keyPair) and bootstrapper (pBootstrappe...
Definition: LocalNode.cpp:255
int main(int argc, const char **argv)
Definition: src/catapult/process/server/main.cpp:29
#define DEFINE_WELL_KNOWN_RESULT(CODE)
Definition: tools/statusgen/main.cpp:29
Comprehensive configuration for a catapult process.
Definition: CatapultConfiguration.h:34
LogLevel
Catapult log levels.
Definition: Logging.h:36
utils::ContainerHexFormatter< Key::const_iterator > FormatKey(const Key &key)
Formats a public key for printing.
Definition: KeyUtils.cpp:27
NodeRoles
A node's role.
Definition: NodeRoles.h:28
static constexpr int Label_Width
Definition: tools/address/main.cpp:137
std::shared_ptr< std::random_device > m_pRd
Definition: tools/address/main.cpp:55
def info(*args)
Definition: forwardsValidation.py:12
std::string m_publicKey
Definition: tools/address/main.cpp:132
Key ParseKey(const std::string &keyString)
Parses a key from a string (keyString) and returns the result.
Definition: KeyUtils.cpp:35
std::vector< uint8_t > Data
Definition: tools/benchmark/main.cpp:33
boost::filesystem::path GetResourcesPath(int argc, const char **argv)
Definition: ProcessMain.cpp:90
#define CATAPULT_THROW_INVALID_ARGUMENT_1(MESSAGE, PARAM1)
Macro used to throw a catapult invalid argument with a single parameter.
Definition: exceptions.h:183
std::string m_networkName
Definition: tools/address/main.cpp:134
int main(int argc, const char **argv)
Definition: tools/statusgen/main.cpp:83
const std::vector< NodeInfoPointer > & m_nodeInfos
Definition: tools/network/main.cpp:271
model::EntityRange< ionet::PackedNodeInfo > PartnerNodeInfos
Definition: tools/network/main.cpp:45
Address PublicKeyToAddress(const Key &publicKey, NetworkIdentifier networkIdentifier)
Creates an address from a public key (publicKey) for the network identified by networkIdentifier.
Definition: Address.cpp:50
std::function< void()> action
An action function.
Definition: functions.h:27
std::string AddressToString(const Address &address)
Creates an encoded address from an address.
Definition: Address.cpp:38
int ProcessMain(int argc, const char **argv, const std::string &host, const CreateProcessHost &createProcessHost)
Definition: ProcessMain.cpp:94
#define CATAPULT_LOG_LEVEL(LEVEL)
Writes a log entry to the default logger with LEVEL severity.
Definition: Logging.h:336
int main(int argc, const char **argv)
Definition: src/catapult/process/recovery/main.cpp:29
NodeSource
Definition: NodeInfo.h:47
std::string m_resourcesPath
Definition: tools/nemgen/main.cpp:96
NetworkIdentifier
Possible network identifiers.
Definition: NetworkInfo.h:45
int main(int argc, const char **argv)
Definition: tools/nemgen/main.cpp:103
uint32_t m_numRandomKeys
Definition: tools/address/main.cpp:131
uint32_t m_numPartitions
Definition: tools/benchmark/main.cpp:118
Validation result is failure.
utils::BaseValue< uint32_t, NodeVersion_tag > NodeVersion
32-bit node version where first three bytes represent { major, minor, build } and last byte is user d...
Definition: Node.h:32
std::unique_ptr< RemoteDiagnosticApi > CreateRemoteDiagnosticApi(ionet::PacketIo &io)
Creates a diagnostic api for interacting with a remote node with the specified io.
Definition: RemoteDiagnosticApi.cpp:165
void AddStaticNodesFromPath(ProcessBootstrapper &bootstrapper, const std::string &path)
Adds static nodes from path to bootstrapper.
Definition: ProcessBootstrapper.cpp:109
ionet::Node Node
Definition: PacketWriters.cpp:45
model::ChainScore ChainScore
Definition: tools/health/main.cpp:43
Definition: AddressExtractionExtension.cpp:28
bool Verify(const Key &publicKey, const RawBuffer &dataBuffer, const Signature &signature)
Definition: Signer.cpp:136
uint32_t m_opsPerPartition
Definition: tools/benchmark/main.cpp:119
Definition: AddressValidator.cpp:25
static auto FromString(const std::string &privateKey)
Creates a key pair from privateKey.
Definition: KeyPair.h:46
std::ostringstream m_out
Definition: tools/network/main.cpp:273
bool IsVerified
Definition: tools/benchmark/main.cpp:35
A node in the catapult network.
Definition: Node.h:82
static constexpr auto Max_Counter_Name_Size
Maximum counter name size.
Definition: DiagnosticCounterId.h:30
void Sign(const KeyPair &keyPair, const RawBuffer &dataBuffer, Signature &computedSignature)
Definition: Signer.cpp:82
utils::ByteArray< Key_Size, Key_tag > Key
Definition: src/catapult/types.h:41
Level for logging warning events.
ionet::Node Remote
Definition: tools/network/main.cpp:43
ionet::NodeSet Partners
Definition: tools/network/main.cpp:44
thread::future< bool > ParallelFor(boost::asio::io_context &ioContext, TItems &items, size_t numPartitions, TWorkCallback callback)
Definition: ParallelFor.h:118
std::string m_summaryFilePath
Definition: tools/nemgen/main.cpp:98