Skip to content

Commit e622156

Browse files
committed
Update documentation
1 parent e8475e7 commit e622156

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/init.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ void SetupServerArgs(ArgsManager& argsman)
425425
hidden_args.emplace_back("-sysperms");
426426
#endif
427427
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+
argsman.AddArg("-trim_headers", strprintf("Trim old headers in memory (by default older than 2 epochs), 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);
429429
argsman.AddArg("-blockfilterindex=<type>",
430430
strprintf("Maintain an index of compact filters by block (default: %s, values: %s).", DEFAULT_BLOCKFILTERINDEX, ListBlockFilterTypes()) +
431431
" If <type> is not supplied or if <type> = 1, indexes for all known types are enabled.",

src/txdb.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,9 @@ bool CBlockTreeDB::WritePAKList(const std::vector<std::vector<unsigned char> >&
307307
return Write(std::make_pair(DB_PAK, uint256S("1")), offline_list) && Write(std::make_pair(DB_PAK, uint256S("2")), online_list) && Write(std::make_pair(DB_PAK, uint256S("3")), reject);
308308
}
309309

310+
/** Note that we only get a conservative (lower) estimate of the max header height here,
311+
* obtained by sampling the first 10,000 headers on disk (which are in random order) and
312+
* taking the highest block we see. */
310313
bool CBlockTreeDB::WalkBlockIndexGutsForMaxHeight(int* nHeight) {
311314
std::unique_ptr<CDBIterator> pcursor(NewIterator());
312315
*nHeight = 0;

0 commit comments

Comments
 (0)