From 21b58f430fa05fdb7c5db79b545302417a5dbceb Mon Sep 17 00:00:00 2001 From: Douglas Chimento Date: Wed, 17 Nov 2021 12:47:30 +0200 Subject: 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 --- src/net.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/net.h') 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 */ -- cgit v1.2.3