mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-12-02 16:59:44 +01:00
rpc: remove info about mallocinfo needing glibc 2.10+
We require glibc 2.18+.
This commit is contained in:
@@ -558,7 +558,7 @@ static RPCHelpMan getmemoryinfo()
|
|||||||
#ifdef HAVE_MALLOC_INFO
|
#ifdef HAVE_MALLOC_INFO
|
||||||
return RPCMallocInfo();
|
return RPCMallocInfo();
|
||||||
#else
|
#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
|
#endif
|
||||||
} else {
|
} else {
|
||||||
throw JSONRPCError(RPC_INVALID_PARAMETER, "unknown mode " + mode);
|
throw JSONRPCError(RPC_INVALID_PARAMETER, "unknown mode " + mode);
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ class RpcMiscTest(BitcoinTestFramework):
|
|||||||
assert_equal(tree.tag, 'malloc')
|
assert_equal(tree.tag, 'malloc')
|
||||||
except JSONRPCException:
|
except JSONRPCException:
|
||||||
self.log.info('getmemoryinfo(mode="mallocinfo") not available')
|
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")
|
assert_raises_rpc_error(-8, "unknown mode foobar", node.getmemoryinfo, mode="foobar")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user