Bitcoin ABC  0.26.3
P2P Digital Currency
Classes | Functions | Variables
kernel Namespace Reference

Classes

struct  BlockManagerOpts
 An options struct for BlockManager, more ergonomically referred to as BlockManager::Options due to the using-declaration in BlockManager. More...
 
struct  ChainstateManagerOpts
 An options struct for ChainstateManager, more ergonomically referred to as ChainstateManager::Options due to the using-declaration in ChainstateManager. More...
 
struct  MemPoolOptions
 Options struct containing options for constructing a CTxMemPool. More...
 
struct  ValidationCacheSizes
 

Functions

bool LoadMempool (CTxMemPool &pool, const fs::path &load_path, Chainstate &active_chainstate, FopenFn mockable_fopen_function)
 
bool DumpMempool (const CTxMemPool &pool, const fs::path &dump_path, FopenFn mockable_fopen_function, bool skip_file_commit)
 
bool DumpMempool (const CTxMemPool &pool, const fs::path &dump_path, fsbridge::FopenFn mockable_fopen_function=fsbridge::fopen, bool skip_file_commit=false)
 Dump the mempool to disk. More...
 
bool LoadMempool (CTxMemPool &pool, const fs::path &load_path, Chainstate &active_chainstate, fsbridge::FopenFn mockable_fopen_function=fsbridge::fopen)
 Load the mempool from disk. More...
 

Variables

static const uint64_t MEMPOOL_DUMP_VERSION = 1
 

Function Documentation

◆ DumpMempool() [1/2]

bool kernel::DumpMempool ( const CTxMemPool pool,
const fs::path dump_path,
FopenFn  mockable_fopen_function,
bool  skip_file_commit 
)

Definition at line 143 of file mempool_persist.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ DumpMempool() [2/2]

bool kernel::DumpMempool ( const CTxMemPool pool,
const fs::path dump_path,
fsbridge::FopenFn  mockable_fopen_function = fsbridge::fopen,
bool  skip_file_commit = false 
)

Dump the mempool to disk.

◆ LoadMempool() [1/2]

bool kernel::LoadMempool ( CTxMemPool pool,
const fs::path load_path,
Chainstate active_chainstate,
FopenFn  mockable_fopen_function 
)

Definition at line 39 of file mempool_persist.cpp.

Here is the call graph for this function:

◆ LoadMempool() [2/2]

bool kernel::LoadMempool ( CTxMemPool pool,
const fs::path load_path,
Chainstate active_chainstate,
fsbridge::FopenFn  mockable_fopen_function = fsbridge::fopen 
)

Load the mempool from disk.

Variable Documentation

◆ MEMPOOL_DUMP_VERSION

const uint64_t kernel::MEMPOOL_DUMP_VERSION = 1
static

Definition at line 37 of file mempool_persist.cpp.