|
Monero
|
#include "db_lmdb.h"#include <boost/filesystem.hpp>#include <boost/format.hpp>#include <boost/current_function.hpp>#include <memory>#include <cstring>#include <random>#include "string_tools.h"#include "file_io_utils.h"#include "common/util.h"#include "cryptonote_basic/cryptonote_format_utils.h"#include "crypto/crypto.h"#include "profile_tools.h"#include "ringct/rctOps.h"
Namespaces | |
| anonymous_namespace{db_lmdb.cpp} | |
| cryptonote | |
| Holds cryptonote related classes and helpers. | |
Macros | |
| #define | MONERO_DEFAULT_LOG_CATEGORY "blockchain.db.lmdb" |
| #define | VERSION 3 |
| #define | MDB_val_set(var, val) MDB_val var = {sizeof(val), (void *)&val} |
| #define | CURSOR(name) |
| #define | RCURSOR(name) |
| #define | TXN_PREFIX(flags) |
| #define | TXN_PREFIX_RDONLY() |
| #define | TXN_POSTFIX_RDONLY() |
| #define | TXN_POSTFIX_SUCCESS() |
| #define | TXN_BLOCK_PREFIX(flags) |
| #define | TXN_BLOCK_POSTFIX_SUCCESS() |
| #define | RENAME_DB(name) |
| #define | LOGIF(y) if (ELPP->vRegistry()->allowed(y, "global")) |
| #define | DELETE_DB(x) |
Typedefs | |
| typedef struct cryptonote::mdb_block_info_old | cryptonote::mdb_block_info_old |
| typedef struct cryptonote::mdb_block_info | cryptonote::mdb_block_info |
| typedef struct cryptonote::blk_height | cryptonote::blk_height |
| typedef struct cryptonote::txindex | cryptonote::txindex |
| typedef struct cryptonote::pre_rct_outkey | cryptonote::pre_rct_outkey |
| typedef struct cryptonote::outkey | cryptonote::outkey |
| typedef struct cryptonote::outtx | cryptonote::outtx |
Functions | |
| template<typename T > | |
| void | anonymous_namespace{db_lmdb.cpp}::throw0 (const T &e) |
| template<typename T > | |
| void | anonymous_namespace{db_lmdb.cpp}::throw1 (const T &e) |
| int | anonymous_namespace{db_lmdb.cpp}::compare_uint64 (const MDB_val *a, const MDB_val *b) |
| int | anonymous_namespace{db_lmdb.cpp}::compare_hash32 (const MDB_val *a, const MDB_val *b) |
| int | anonymous_namespace{db_lmdb.cpp}::compare_string (const MDB_val *a, const MDB_val *b) |
| const std::string | anonymous_namespace{db_lmdb.cpp}::lmdb_error (const std::string &error_string, int mdb_res) |
| void | anonymous_namespace{db_lmdb.cpp}::lmdb_db_open (MDB_txn *txn, const char *name, int flags, MDB_dbi &dbi, const std::string &error_string) |
| void | cryptonote::lmdb_resized (MDB_env *env) |
| int | cryptonote::lmdb_txn_begin (MDB_env *env, MDB_txn *parent, unsigned int flags, MDB_txn **txn) |
| int | cryptonote::lmdb_txn_renew (MDB_txn *txn) |
| #define CURSOR | ( | name | ) |
| #define DELETE_DB | ( | x | ) |
| #define LOGIF | ( | y | ) | if (ELPP->vRegistry()->allowed(y, "global")) |
| #define MDB_val_set | ( | var, | |
| val | |||
| ) | MDB_val var = {sizeof(val), (void *)&val} |
| #define MONERO_DEFAULT_LOG_CATEGORY "blockchain.db.lmdb" |
| #define RCURSOR | ( | name | ) |
| #define RENAME_DB | ( | name | ) |
| #define TXN_BLOCK_POSTFIX_SUCCESS | ( | ) |
| #define TXN_BLOCK_PREFIX | ( | flags | ) |
| #define TXN_POSTFIX_RDONLY | ( | ) |
| #define TXN_POSTFIX_SUCCESS | ( | ) |
| #define TXN_PREFIX | ( | flags | ) |
| #define TXN_PREFIX_RDONLY | ( | ) |
| #define VERSION 3 |
1.8.14