Monero
Macros | Functions
blockchain_import.cpp File Reference
#include <atomic>
#include <cstdio>
#include <algorithm>
#include <fstream>
#include <boost/filesystem.hpp>
#include <boost/algorithm/string.hpp>
#include <unistd.h>
#include "misc_log_ex.h"
#include "bootstrap_file.h"
#include "bootstrap_serialization.h"
#include "blocks/blocks.h"
#include "cryptonote_basic/cryptonote_format_utils.h"
#include "serialization/binary_utils.h"
#include "serialization/json_utils.h"
#include "include_base_utils.h"
#include "cryptonote_core/cryptonote_core.h"
Include dependency graph for blockchain_import.cpp:

Macros

#define MONERO_DEFAULT_LOG_CATEGORY   "bcutil"
 

Functions

int get_db_flags_from_mode (const std::string &db_mode)
 
int pop_blocks (cryptonote::core &core, int num_blocks)
 
int check_flush (cryptonote::core &core, std::vector< block_complete_entry > &blocks, bool force)
 
int import_from_file (cryptonote::core &core, const std::string &import_file_path, uint64_t block_stop=0)
 
int main (int argc, char *argv[])
 

Macro Definition Documentation

◆ MONERO_DEFAULT_LOG_CATEGORY

#define MONERO_DEFAULT_LOG_CATEGORY   "bcutil"

Function Documentation

◆ check_flush()

int check_flush ( cryptonote::core core,
std::vector< block_complete_entry > &  blocks,
bool  force 
)

◆ get_db_flags_from_mode()

int get_db_flags_from_mode ( const std::string &  db_mode)

◆ import_from_file()

int import_from_file ( cryptonote::core core,
const std::string &  import_file_path,
uint64_t  block_stop = 0 
)

◆ main()

int main ( int  argc,
char *  argv[] 
)

◆ pop_blocks()

int pop_blocks ( cryptonote::core core,
int  num_blocks 
)