You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
argsman.AddArg("-txindex", strprintf("Maintain a full transaction index, used by the getrawtransaction rpc call (default: %u)", DEFAULT_TXINDEX), ArgsManager::ALLOW_ANY, OptionsCategory::OPTIONS);
428
+
argsman.AddArg("-trim_headers", strprintf("Trim old headers in memory, removing blocksigning and dynafed-related fields. Saves memory, but blocks us from serving blocks or headers to peers, and removes trimmed fields from some JSON RPC outputs. (default: false)"), ArgsManager::ALLOW_ANY, OptionsCategory::OPTIONS);
428
429
argsman.AddArg("-blockfilterindex=<type>",
429
430
strprintf("Maintain an index of compact filters by block (default: %s, values: %s).", DEFAULT_BLOCKFILTERINDEX, ListBlockFilterTypes()) +
430
431
" If <type> is not supplied or if <type> = 1, indexes for all known types are enabled.",
LogPrintf("Configured for header-trimming mode. This will reduce memory usage substantially, but we will be unable to serve as a full P2P peer, and certain header fields may be missing from JSON RPC output.\n");
985
+
fTrimHeaders = true;
986
+
// This calculation is driven by GetValidFedpegScripts in pegins.cpp, which walks the chain
987
+
// back to current epoch start, and then an additional total_valid_epochs on top of that.
988
+
// We add one epoch here for the current partial epoch, and then another one for good luck.
0 commit comments