Add a flag for header-trimming; clear P2P network feature bits when enabled.

This commit is contained in:
Glenn Willen 2022-11-08 00:19:32 -08:00
parent 68eb0864cb
commit 7c555578b7
3 changed files with 34 additions and 1 deletions

View file

@ -25,6 +25,9 @@ std::atomic_bool fReindex(false);
bool fHavePruned = false;
bool fPruneMode = false;
uint64_t nPruneTarget = 0;
bool fTrimHeaders = false;
uint64_t nMustKeepFullHeaders = std::numeric_limits<uint64_t>::max();
uint64_t nHeaderDownloadBuffer = std::numeric_limits<uint64_t>::max();
// TODO make namespace {
RecursiveMutex cs_LastBlockFile;