aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfanquake <fanquake@gmail.com>2021-12-01 19:18:26 +0800
committerfanquake <fanquake@gmail.com>2021-12-01 19:18:26 +0800
commit9a09d307e9bd81ed218dd560d3eac7565f1f7a2f (patch)
tree761a3c092bf3a214d6e7255c42c7b1fec84a510d
parent205877e55f7a5cab1f64f98d5305520744be06d2 (diff)
downloadbitcoin-9a09d307e9bd81ed218dd560d3eac7565f1f7a2f.tar.xz
rpc: remove info about mallocinfo needing glibc 2.10+
We require glibc 2.18+.
-rw-r--r--src/rpc/misc.cpp2
-rwxr-xr-xtest/functional/rpc_misc.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/rpc/misc.cpp b/src/rpc/misc.cpp
index 2bd8a6b050..6a3e160d8c 100644
--- a/src/rpc/misc.cpp
+++ b/src/rpc/misc.cpp
@@ -558,7 +558,7 @@ static RPCHelpMan getmemoryinfo()
#ifdef HAVE_MALLOC_INFO
return RPCMallocInfo();
#else
- throw JSONRPCError(RPC_INVALID_PARAMETER, "mallocinfo is only available when compiled with glibc 2.10+");
+ throw JSONRPCError(RPC_INVALID_PARAMETER, "mallocinfo mode not available");
#endif
} else {
throw JSONRPCError(RPC_INVALID_PARAMETER, "unknown mode " + mode);
diff --git a/test/functional/rpc_misc.py b/test/functional/rpc_misc.py
index b3abd9d236..2f1796d7cc 100755
--- a/test/functional/rpc_misc.py
+++ b/test/functional/rpc_misc.py
@@ -50,7 +50,7 @@ class RpcMiscTest(BitcoinTestFramework):
assert_equal(tree.tag, 'malloc')
except JSONRPCException:
self.log.info('getmemoryinfo(mode="mallocinfo") not available')
- assert_raises_rpc_error(-8, 'mallocinfo is only available when compiled with glibc 2.10+', node.getmemoryinfo, mode="mallocinfo")
+ assert_raises_rpc_error(-8, 'mallocinfo mode not available', node.getmemoryinfo, mode="mallocinfo")
assert_raises_rpc_error(-8, "unknown mode foobar", node.getmemoryinfo, mode="foobar")