MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / ApplyArgsManOptions

Function ApplyArgsManOptions

src/node/mempool_args.cpp:33–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31
32namespace {
33void ApplyArgsManOptions(const ArgsManager& argsman, MemPoolLimits& mempool_limits)
34{
35 mempool_limits.cluster_count = argsman.GetIntArg("-limitclustercount", mempool_limits.cluster_count);
36
37 if (auto vkb = argsman.GetIntArg("-limitclustersize")) mempool_limits.cluster_size_vbytes = *vkb * 1'000;
38
39 mempool_limits.ancestor_count = argsman.GetIntArg("-limitancestorcount", mempool_limits.ancestor_count);
40
41 mempool_limits.descendant_count = argsman.GetIntArg("-limitdescendantcount", mempool_limits.descendant_count);
42}
43}
44
45util::Result<void> ApplyArgsManOptions(const ArgsManager& argsman, const CChainParams& chainparams, MemPoolOptions& mempool_opts)

Callers 7

InitAndLoadChainstateFunction · 0.50
AppInitMainFunction · 0.50
SetOptsFromArgsFunction · 0.50
HeadersSyncSetupMethod · 0.50
MemPoolOptionsForTestFunction · 0.50
TestingSetupMethod · 0.50

Calls 9

UntranslatedFunction · 0.85
ParseMoneyFunction · 0.85
AmountErrMsgFunction · 0.85
GetArgMethod · 0.80
GetBoolArgMethod · 0.80
IsTestChainMethod · 0.80
valueMethod · 0.45
ToStringMethod · 0.45
GetChainTypeStringMethod · 0.45

Tested by 4

SetOptsFromArgsFunction · 0.40
HeadersSyncSetupMethod · 0.40
MemPoolOptionsForTestFunction · 0.40
TestingSetupMethod · 0.40