31 #include <unordered_map>
40 #define BEGIN_RPC_MESSAGE_CLASS(classname) \
44 static const char* const name;
46 #define BEGIN_RPC_MESSAGE_REQUEST \
47 class Request : public Message \
52 rapidjson::Value toJson(rapidjson::Document& doc) const; \
53 void fromJson(rapidjson::Value& val);
55 #define BEGIN_RPC_MESSAGE_RESPONSE \
56 class Response : public Message \
61 rapidjson::Value toJson(rapidjson::Document& doc) const; \
62 void fromJson(rapidjson::Value& val);
64 #define END_RPC_MESSAGE_REQUEST };
65 #define END_RPC_MESSAGE_RESPONSE };
66 #define END_RPC_MESSAGE_CLASS };
71 #define RPC_MESSAGE_MEMBER(type, name) type name = {}
122 using txes_map = std::unordered_map<crypto::hash, transaction_info>;
uint64_t height
Definition: blockchain.cpp:91
uint8_t version
Definition: blockchain.cpp:90
static void prune(MDB_env *env0, MDB_env *env1)
Definition: blockchain_prune.cpp:247
Definition: cryptonote_basic.h:205
Definition: blocks.cpp:13
POD_CLASS hash
Definition: hash.h:50
END_RPC_MESSAGE_CLASS
Definition: daemon_messages.h:86
END_RPC_MESSAGE_REQUEST
Definition: daemon_messages.h:82
BEGIN_RPC_MESSAGE_RESPONSE
Definition: daemon_messages.h:83
SendRawTx::Response Response
Definition: daemon_messages.h:179
RPC_MESSAGE_MEMBER(uint64_t, height)
BEGIN_RPC_MESSAGE_REQUEST
Definition: daemon_messages.h:81
END_RPC_MESSAGE_RESPONSE
Definition: daemon_messages.h:85
std::unordered_map< crypto::key_image, std::vector< crypto::hash > > key_images_with_tx_hashes
Definition: message_data_structs.h:106
STATUS
Definition: daemon_messages.h:130
@ SPENT_IN_POOL
Definition: daemon_messages.h:133
@ SPENT_IN_BLOCKCHAIN
Definition: daemon_messages.h:132
@ UNSPENT
Definition: daemon_messages.h:131
BEGIN_RPC_MESSAGE_CLASS(GetHeight)
std::unordered_map< crypto::hash, transaction_info > txes_map
Definition: daemon_messages.h:122
Holds cryptonote related classes and helpers.
Definition: db_bdb.cpp:226
mdb_size_t count(MDB_cursor *cur)
Definition: value_stream.cpp:39
CXA_THROW_INFO_T * info
Definition: stack_trace.cpp:91
Definition: message_data_structs.h:175
Definition: message_data_structs.h:130