btck::ChainstateManagerOptions

Owning wrapper over btck_ChainstateManagerOptions, configuring a ChainMan.

Synopsis

Declared in <kernel/bitcoinkernel_wrapper.h>

class ChainstateManagerOptions
    : public UniqueHandle<btck_ChainstateManagerOptions, btck_chainstate_manager_options_destroy>

Base Classes

NameDescription
UniqueHandle<btck_ChainstateManagerOptions, btck_chainstate_manager_options_destroy>Owning RAII handle for a non-copyable C object, backed by std::unique_ptr.

Member Functions

NameDescription
ChainstateManagerOptions [constructor]Constructs options with the data and block directories.
SetDatabaseCacheBytes Sets the database cache size.
SetWipeDbs Selects which databases to wipe on startup.
SetWorkerThreads Sets the number of script-verification worker threads.
UpdateBlockTreeDbInMemory Controls whether the block tree database is kept in memory.
UpdateChainstateDbInMemory Controls whether the chainstate database is kept in memory.
get Returns the owned C handle.

Protected Types

NameDescription
Deleter Custom deleter that forwards to the C destroy function.

Protected Data Members

NameDescription
m_ptr The owned C handle.