|
Electroneum
|
#include <array>#include <lmdb.h>#include <boost/algorithm/string.hpp>#include "common/command_line.h"#include "common/pruning.h"#include "cryptonote_core/cryptonote_core.h"#include "cryptonote_core/blockchain.h"#include "blockchain_db/blockchain_db.h"#include "blockchain_db/lmdb/db_lmdb.h"#include "blockchain_db/db_types.h"#include "version.h"
Macros | |
| #define | ELECTRONEUM_DEFAULT_LOG_CATEGORY "bcutil" |
| #define | MDB_val_set(var, val) MDB_val var = {sizeof(val), (void *)&val} |
Functions | |
| static std::error_code | replace_file (const boost::filesystem::path &replacement_name, const boost::filesystem::path &replaced_name) |
| static void | open (MDB_env *&env, const boost::filesystem::path &path, uint64_t db_flags, bool readonly) |
| static void | close (MDB_env *env) |
| static void | add_size (MDB_env *env, uint64_t bytes) |
| static void | check_resize (MDB_env *env, size_t bytes) |
| static bool | resize_point (size_t nrecords, MDB_env *env, MDB_txn **txn, size_t &bytes) |
| static void | copy_table (MDB_env *env0, MDB_env *env1, const char *table, unsigned int flags, unsigned int putflags, int(*cmp)(const MDB_val *, const MDB_val *)=0) |
| static bool | is_v1_tx (MDB_cursor *c_txs_pruned, MDB_val *tx_id) |
| static void | prune (MDB_env *env0, MDB_env *env1) |
| static bool | parse_db_sync_mode (std::string db_sync_mode, uint64_t &db_flags) |
| int | main (int argc, char *argv[]) |
Variables | |
| static std::string | db_path |
| static uint64_t | records_per_sync = 128 |
| static const size_t | slack = 512 * 1024 * 1024 |
| #define ELECTRONEUM_DEFAULT_LOG_CATEGORY "bcutil" |
| #define MDB_val_set | ( | var, | |
| val | |||
| ) | MDB_val var = {sizeof(val), (void *)&val} |
|
static |
|
static |
|
static |
|
static |
|
static |
| int main | ( | int | argc, |
| char * | argv[] | ||
| ) |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |