aboutsummaryrefslogtreecommitdiff
path: root/src/net.h
diff options
context:
space:
mode:
authorDouglas Chimento <dchimento@gmail.com>2021-11-17 12:47:30 +0200
committerDouglas Chimento <dchimento@gmail.com>2021-11-17 12:47:30 +0200
commit21b58f430fa05fdb7c5db79b545302417a5dbceb (patch)
tree7998abbdb8b958e8b3c35812a12e1333a98c8270 /src/net.h
parent94db963de501e4aba6e5d8150a01ceb85753dee1 (diff)
downloadbitcoin-21b58f430fa05fdb7c5db79b545302417a5dbceb.tar.xz
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.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net.h b/src/net.h
index 878f10cd42..182847067a 100644
--- a/src/net.h
+++ b/src/net.h
@@ -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 */