#include <qt/guiconstants.h>
#include <QAbstractListModel>
#include <cassert>
#include <cstdint>
Go to the source code of this file.
|
class | OptionsModel |
| Interface from Qt to configuration data structure for Bitcoin client. More...
|
|
|
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...
|
|
◆ 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 38 of file optionsmodel.h.
◆ 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 30 of file optionsmodel.h.
◆ DEFAULT_GUI_PROXY_HOST
QT_END_NAMESPACE const char* DEFAULT_GUI_PROXY_HOST |
|
extern |
◆ DEFAULT_GUI_PROXY_PORT
constexpr uint16_t DEFAULT_GUI_PROXY_PORT = 9050 |
|
staticconstexpr |