31 #include <rapidjson/writer.h>
32 #include <unordered_map>
35 #include "byte_stream.h"
42 #define BEGIN_RPC_MESSAGE_CLASS(classname) \
47 #define BEGIN_RPC_MESSAGE_REQUEST \
48 class Request final : public Message \
53 void doToJson(rapidjson::Writer<epee::byte_stream>& dest) const override final; \
54 void fromJson(const rapidjson::Value& val) override final;
56 #define BEGIN_RPC_MESSAGE_RESPONSE \
57 class Response final : public Message \
62 void doToJson(rapidjson::Writer<epee::byte_stream>& dest) const override final; \
63 void fromJson(const rapidjson::Value& val) override final;
65 #define END_RPC_MESSAGE_REQUEST };
66 #define END_RPC_MESSAGE_RESPONSE };
67 #define END_RPC_MESSAGE_CLASS };
72 #define RPC_MESSAGE_MEMBER(type, name) type name = {}
123 using txes_map = std::unordered_map<crypto::hash, transaction_info>;
static void prune(MDB_env *env0, MDB_env *env1)
Definition: blockchain_prune.cpp:246
Definition: cryptonote_basic.h:194
Definition: blocks.cpp:13
POD_CLASS hash
Definition: hash.h:48
END_RPC_MESSAGE_CLASS
Definition: daemon_messages.h:87
END_RPC_MESSAGE_REQUEST
Definition: daemon_messages.h:83
BEGIN_RPC_MESSAGE_RESPONSE
Definition: daemon_messages.h:84
SendRawTx::Response Response
Definition: daemon_messages.h:180
RPC_MESSAGE_MEMBER(uint64_t, height)
BEGIN_RPC_MESSAGE_REQUEST
Definition: daemon_messages.h:82
END_RPC_MESSAGE_RESPONSE
Definition: daemon_messages.h:86
std::unordered_map< crypto::key_image, std::vector< crypto::hash > > key_images_with_tx_hashes
Definition: message_data_structs.h:107
STATUS
Definition: daemon_messages.h:131
@ SPENT_IN_POOL
Definition: daemon_messages.h:134
@ SPENT_IN_BLOCKCHAIN
Definition: daemon_messages.h:133
@ UNSPENT
Definition: daemon_messages.h:132
BEGIN_RPC_MESSAGE_CLASS(GetHeight)
std::unordered_map< crypto::hash, transaction_info > txes_map
Definition: daemon_messages.h:123
Holds cryptonote related classes and helpers.
Definition: blockchain_db.cpp:45
mdb_size_t count(MDB_cursor *cur)
Definition: value_stream.cpp:39
version
Supported socks variants.
Definition: socks.h:58
CXA_THROW_INFO_T * info
Definition: stack_trace.cpp:90
Definition: message_data_structs.h:176
Definition: message_data_structs.h:131