Bitcoin Core  21.99.0
P2P Digital Currency
Classes | Namespaces | Functions | Variables
optionsmodel.h File Reference
#include <amount.h>
#include <cstdint>
#include <qt/guiconstants.h>
#include <QAbstractListModel>
#include <assert.h>
Include dependency graph for optionsmodel.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  OptionsModel
 Interface from Qt to configuration data structure for Bitcoin client. More...
 

Namespaces

 interfaces
 

Functions

static int PruneMiBtoGB (int64_t mib)
 Convert configured prune target MiB to displayed GB. More...
 
static int64_t PruneGBtoMiB (int gb)
 Convert displayed prune target GB to configured MiB. More...
 

Variables

const char * DEFAULT_GUI_PROXY_HOST
 
static constexpr uint16_t DEFAULT_GUI_PROXY_PORT = 9050
 

Function Documentation

◆ PruneGBtoMiB()

static int64_t PruneGBtoMiB ( int  gb)
inlinestatic

Convert displayed prune target GB to configured MiB.

Round down so roundtrip GB -> MiB -> GB conversion is stable.

Definition at line 31 of file optionsmodel.h.

Here is the caller graph for this function:

◆ PruneMiBtoGB()

static int PruneMiBtoGB ( int64_t  mib)
inlinestatic

Convert configured prune target MiB to displayed GB.

Round up to avoid underestimating max disk usage.

Definition at line 26 of file optionsmodel.h.

Variable Documentation

◆ DEFAULT_GUI_PROXY_HOST

const char* DEFAULT_GUI_PROXY_HOST

Definition at line 27 of file optionsmodel.cpp.

◆ DEFAULT_GUI_PROXY_PORT

constexpr uint16_t DEFAULT_GUI_PROXY_PORT = 9050
staticconstexpr

Definition at line 21 of file optionsmodel.h.