diff options
author | Troy Giorshev <troygiorshev@gmail.com> | 2020-07-13 14:00:03 -0400 |
---|---|---|
committer | Troy Giorshev <troygiorshev@gmail.com> | 2021-01-23 15:58:42 -0500 |
commit | 4d1a582549bc982d55e24585b0ba06f92f21e9da (patch) | |
tree | 926a3e2d20a05a4ad93e33913310aec9a001a9fa /src/init.cpp | |
parent | f2a77ff97bec09dd5fcc043d8659d8ec5dfb87c2 (diff) | |
download | bitcoin-4d1a582549bc982d55e24585b0ba06f92f21e9da.tar.xz |
Call CaptureMessage at appropriate locations
These calls are toggled by a debug-only "capturemessages" flag. Default
disabled.
Diffstat (limited to 'src/init.cpp')
-rw-r--r-- | src/init.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/init.cpp b/src/init.cpp index 3ab6263813..e16f0e8c83 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -521,6 +521,7 @@ void SetupServerArgs(NodeContext& node) argsman.AddArg("-limitdescendantcount=<n>", strprintf("Do not accept transactions if any ancestor would have <n> or more in-mempool descendants (default: %u)", DEFAULT_DESCENDANT_LIMIT), ArgsManager::ALLOW_ANY | ArgsManager::DEBUG_ONLY, OptionsCategory::DEBUG_TEST); argsman.AddArg("-limitdescendantsize=<n>", strprintf("Do not accept transactions if any ancestor would have more than <n> kilobytes of in-mempool descendants (default: %u).", DEFAULT_DESCENDANT_SIZE_LIMIT), ArgsManager::ALLOW_ANY | ArgsManager::DEBUG_ONLY, OptionsCategory::DEBUG_TEST); argsman.AddArg("-addrmantest", "Allows to test address relay on localhost", ArgsManager::ALLOW_ANY | ArgsManager::DEBUG_ONLY, OptionsCategory::DEBUG_TEST); + argsman.AddArg("-capturemessages", "Capture all P2P messages to disk", ArgsManager::ALLOW_BOOL | ArgsManager::DEBUG_ONLY, OptionsCategory::DEBUG_TEST); argsman.AddArg("-debug=<category>", "Output debugging information (default: -nodebug, supplying <category> is optional). " "If <category> is not supplied or if <category> = 1, output all debugging information. <category> can be: " + LogInstance().LogCategoriesString() + ".", ArgsManager::ALLOW_ANY, OptionsCategory::DEBUG_TEST); |