diff options
author | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2019-01-14 13:40:00 +0200 |
---|---|---|
committer | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2019-01-30 07:17:22 +0200 |
commit | 6f6514a08090b37b5e8c086015ee4881813ef867 (patch) | |
tree | a81c889c45f5e972229d024ef8c97308312d6336 /src/qt/guiconstants.h | |
parent | 84d0fdce11709c8e26b9c450d47727ab36641437 (diff) | |
download | bitcoin-6f6514a08090b37b5e8c086015ee4881813ef867.tar.xz |
Correct units for "-dbcache" and "-prune"
All dbcache-related values in the code are measured in MiB (not in
megabytes, MB) or in bytes.
The GUI "-prune" values in GB are translated to the node values in MiB
correctly. The maximum of the "-prune" QSpinBox is not limited by the
default value of 99 (GB).
Also, this improves log readability.
Diffstat (limited to 'src/qt/guiconstants.h')
-rw-r--r-- | src/qt/guiconstants.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/qt/guiconstants.h b/src/qt/guiconstants.h index 4d6006c582..736ff13a4a 100644 --- a/src/qt/guiconstants.h +++ b/src/qt/guiconstants.h @@ -52,4 +52,7 @@ static const int MAX_URI_LENGTH = 255; #define QAPP_APP_NAME_TESTNET "Bitcoin-Qt-testnet" #define QAPP_APP_NAME_REGTEST "Bitcoin-Qt-regtest" +/* One gigabyte (GB) in bytes */ +static constexpr uint64_t GB_BYTES{1000000000}; + #endif // BITCOIN_QT_GUICONSTANTS_H |