@@ -298,7 +298,12 @@ void SetupServerArgs()
298298 argsman.AddArg (" -datadir=<dir>" , " Specify data directory" , ArgsManager::ALLOW_ANY, OptionsCategory::OPTIONS);
299299 argsman.AddArg (" -wallet=<dir>" , " Specify wallet file (within data directory)" ,
300300 ArgsManager::ALLOW_ANY, OptionsCategory::OPTIONS);
301- argsman.AddArg (" -dbcache=<n>" , " Set database cache size in megabytes (default: 25)" ,
301+ argsman.AddArg (" -dbcache=<n>" , strprintf (" Set database cache size in megabytes (%d to %d, default: %d)" ,
302+ nMinDbCache, nMaxDbCache, nDefaultDbCache),
303+ ArgsManager::ALLOW_ANY, OptionsCategory::OPTIONS);
304+ argsman.AddArg (" -txindexdbcache=<n>" , strprintf (" Set txindex (leveldb) database cache size in megabytes "
305+ " (%d to %d, default: %d)" ,
306+ nMinDbCache, nMaxTxIndexCache, nDefaultDbCache),
302307 ArgsManager::ALLOW_ANY, OptionsCategory::OPTIONS);
303308 argsman.AddArg (" -dblogsize=<n>" , " Set database disk log size in megabytes (default: 100)" ,
304309 ArgsManager::ALLOW_ANY, OptionsCategory::OPTIONS);
0 commit comments