|
Electroneum
|
#include "db_lmdb.h"#include <boost/filesystem.hpp>#include <boost/format.hpp>#include <boost/circular_buffer.hpp>#include <boost/archive/text_oarchive.hpp>#include <boost/archive/text_iarchive.hpp>#include <memory>#include <cstring>#include "string_tools.h"#include "file_io_utils.h"#include "common/util.h"#include "common/pruning.h"#include "cryptonote_basic/cryptonote_format_utils.h"#include "crypto/crypto.h"#include "profile_tools.h"#include "ringct/rctOps.h"
Go to the source code of this file.
Classes | |
| struct | cryptonote::mdb_block_info_1 |
| struct | cryptonote::mdb_block_info_2 |
| struct | cryptonote::mdb_block_info_3 |
| struct | cryptonote::mdb_block_info_4 |
| struct | cryptonote::blk_height |
| struct | cryptonote::pre_rct_outkey |
| struct | cryptonote::outkey |
| struct | cryptonote::outtx |
| struct | cryptonote::acc_outs_t |
| struct | cryptonote::acc_addr_tx_t |
Namespaces | |
| cryptonote | |
| Holds cryptonote related classes and helpers. | |
Macros | |
| #define | ELECTRONEUM_DEFAULT_LOG_CATEGORY "blockchain.db.lmdb" |
| #define | VERSION 5 |
| #define | MDB_val_set(var, val) MDB_val var = {sizeof(val), (void *)&val} |
| #define | MDB_val_sized(var, val) MDB_val var = {val.size(), (void *)val.data()} |
| #define | MDB_val_str(var, val) MDB_val var = {strlen(val) + 1, (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_1 | cryptonote::mdb_block_info_1 |
| typedef struct cryptonote::mdb_block_info_2 | cryptonote::mdb_block_info_2 |
| typedef struct cryptonote::mdb_block_info_3 | cryptonote::mdb_block_info_3 |
| typedef struct cryptonote::mdb_block_info_4 | cryptonote::mdb_block_info_4 |
| typedef mdb_block_info_4 | cryptonote::mdb_block_info |
| typedef struct cryptonote::blk_height | cryptonote::blk_height |
| typedef struct cryptonote::pre_rct_outkey | cryptonote::pre_rct_outkey |
| typedef struct cryptonote::outkey | cryptonote::outkey |
| typedef struct cryptonote::outtx | cryptonote::outtx |
| typedef struct cryptonote::acc_outs_t | cryptonote::acc_outs_t |
| typedef struct cryptonote::acc_addr_tx_t | cryptonote::acc_addr_tx_t |
Enumerations | |
| enum | { cryptonote::prune_mode_prune, cryptonote::prune_mode_update, cryptonote::prune_mode_check } |
Functions | |
| 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 | ) |
Definition at line 285 of file db_lmdb.cpp.
| #define DELETE_DB | ( | x | ) |
| #define ELECTRONEUM_DEFAULT_LOG_CATEGORY "blockchain.db.lmdb" |
Definition at line 49 of file db_lmdb.cpp.
Definition at line 4954 of file db_lmdb.cpp.
| #define MDB_val_set | ( | var, | |
| val | |||
| ) | MDB_val var = {sizeof(val), (void *)&val} |
Definition at line 89 of file db_lmdb.cpp.
| #define MDB_val_sized | ( | var, | |
| val | |||
| ) | MDB_val var = {val.size(), (void *)val.data()} |
Definition at line 91 of file db_lmdb.cpp.
| #define MDB_val_str | ( | var, | |
| val | |||
| ) | MDB_val var = {strlen(val) + 1, (void *)val} |
Definition at line 93 of file db_lmdb.cpp.
| #define RCURSOR | ( | name | ) |
Definition at line 292 of file db_lmdb.cpp.
| #define RENAME_DB | ( | name | ) |
Definition at line 4932 of file db_lmdb.cpp.
| #define TXN_BLOCK_POSTFIX_SUCCESS | ( | ) |
Definition at line 1823 of file db_lmdb.cpp.
| #define TXN_BLOCK_PREFIX | ( | flags | ) |
Definition at line 1812 of file db_lmdb.cpp.
| #define TXN_POSTFIX_RDONLY | ( | ) |
Definition at line 1795 of file db_lmdb.cpp.
| #define TXN_POSTFIX_SUCCESS | ( | ) |
Definition at line 1797 of file db_lmdb.cpp.
| #define TXN_PREFIX | ( | flags | ) |
Definition at line 1777 of file db_lmdb.cpp.
| #define TXN_PREFIX_RDONLY | ( | ) |
Definition at line 1788 of file db_lmdb.cpp.
| #define VERSION 5 |
Definition at line 60 of file db_lmdb.cpp.