Monero
Loading...
Searching...
No Matches
blockchain.cpp File Reference
#include <algorithm>
#include <cstdio>
#include <boost/asio/dispatch.hpp>
#include <boost/filesystem.hpp>
#include <boost/range/adaptor/reversed.hpp>
#include <boost/format.hpp>
#include "include_base_utils.h"
#include "cryptonote_basic/cryptonote_basic_impl.h"
#include "tx_pool.h"
#include "blockchain.h"
#include "blockchain_db/blockchain_db.h"
#include "cryptonote_basic/cryptonote_boost_serialization.h"
#include "cryptonote_basic/events.h"
#include "cryptonote_config.h"
#include "cryptonote_basic/miner.h"
#include "hardforks/hardforks.h"
#include "misc_language.h"
#include "profile_tools.h"
#include "file_io_utils.h"
#include "int-util.h"
#include "common/threadpool.h"
#include "common/boost_serialization_helper.h"
#include "warnings.h"
#include "crypto/hash.h"
#include "cryptonote_core.h"
#include "ringct/rctSigs.h"
#include "common/perf_timer.h"
#include "common/notify.h"
#include "common/varint.h"
#include "common/pruning.h"
#include "common/data_cache.h"
#include "time_helper.h"
Include dependency graph for blockchain.cpp:

Namespaces

namespace  cryptonote
 Holds cryptonote related classes and helpers.

Macros

#define MONERO_DEFAULT_LOG_CATEGORY   "blockchain"
#define FIND_BLOCKCHAIN_SUPPLEMENT_MAX_SIZE   (100*1024*1024)
#define MERROR_VER(x)
#define BLOCK_REWARD_OVERESTIMATE   (10 * 1000000000000)
#define SCAN_TABLE_QUIT(m)

Functions

void slow_hash_allocate_state ()
void slow_hash_free_state ()
template<typename T>
void reserve_container (std::vector< T > &v, size_t N)
template<typename T>
void reserve_container (std::list< T > &v, size_t N)
static bool fill (BlockchainDB *db, const crypto::hash &tx_hash, cryptonote::blobdata &tx, bool pruned)
static bool fill (BlockchainDB *db, const crypto::hash &tx_hash, tx_blob_entry &tx, bool pruned)
size_t get_transaction_version (const cryptonote::blobdata &bd)
template<class t_pod_type>
std::string pod_to_hex (const t_pod_type &s)

Macro Definition Documentation

◆ BLOCK_REWARD_OVERESTIMATE

#define BLOCK_REWARD_OVERESTIMATE   (10 * 1000000000000)

◆ FIND_BLOCKCHAIN_SUPPLEMENT_MAX_SIZE

#define FIND_BLOCKCHAIN_SUPPLEMENT_MAX_SIZE   (100*1024*1024)

◆ MERROR_VER

#define MERROR_VER ( x)
Value:
MCERROR("verify", x)

◆ MONERO_DEFAULT_LOG_CATEGORY

#define MONERO_DEFAULT_LOG_CATEGORY   "blockchain"

◆ SCAN_TABLE_QUIT

#define SCAN_TABLE_QUIT ( m)
Value:
do { \
MERROR_VER(m) ;\
m_scan_table.clear(); \
return false; \
} while(0); \

Function Documentation

◆ fill() [1/2]

bool fill ( BlockchainDB * db,
const crypto::hash & tx_hash,
cryptonote::blobdata & tx,
bool pruned )
static

◆ fill() [2/2]

bool fill ( BlockchainDB * db,
const crypto::hash & tx_hash,
tx_blob_entry & tx,
bool pruned )
static

◆ get_transaction_version()

size_t get_transaction_version ( const cryptonote::blobdata & bd)

◆ pod_to_hex()

template<class t_pod_type>
std::string epee::string_tools::pod_to_hex ( const t_pod_type & s)

◆ reserve_container() [1/2]

template<typename T>
void reserve_container ( std::list< T > & v,
size_t N )

◆ reserve_container() [2/2]

template<typename T>
void reserve_container ( std::vector< T > & v,
size_t N )

◆ slow_hash_allocate_state()

void slow_hash_allocate_state ( )

◆ slow_hash_free_state()

void slow_hash_free_state ( )