diff options
author | Douglas Chimento <dchimento@gmail.com> | 2021-11-17 12:47:30 +0200 |
---|---|---|
committer | Douglas Chimento <dchimento@gmail.com> | 2021-11-17 12:47:30 +0200 |
commit | 21b58f430fa05fdb7c5db79b545302417a5dbceb (patch) | |
tree | 7998abbdb8b958e8b3c35812a12e1333a98c8270 /src/net.h | |
parent | 94db963de501e4aba6e5d8150a01ceb85753dee1 (diff) |
util: ParseByteUnits - Parse a string with suffix unit [k|K|m|M|g|G|t|T]
A convenience utility for human readable arguments/config e.g. -maxuploadtarget=500g
Diffstat (limited to 'src/net.h')
-rw-r--r-- | src/net.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -70,7 +70,7 @@ static const bool DEFAULT_LISTEN = true; /** The maximum number of peer connections to maintain. */ static const unsigned int DEFAULT_MAX_PEER_CONNECTIONS = 125; /** The default for -maxuploadtarget. 0 = Unlimited */ -static constexpr uint64_t DEFAULT_MAX_UPLOAD_TARGET = 0; +static const std::string DEFAULT_MAX_UPLOAD_TARGET{"0M"}; /** Default for blocks only*/ static const bool DEFAULT_BLOCKSONLY = false; /** -peertimeout default */ |