mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-15 12:51:00 +02:00
Fix underflow when blocks are ahead of headers
This commit is contained in:
parent
718ac5bd6b
commit
e7fea1d50b
3 changed files with 4 additions and 4 deletions
|
|
@ -27,7 +27,7 @@ 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();
|
||||
int64_t nHeaderDownloadBuffer = std::numeric_limits<int64_t>::max();
|
||||
|
||||
// TODO make namespace {
|
||||
RecursiveMutex cs_LastBlockFile;
|
||||
|
|
|
|||
|
|
@ -50,7 +50,7 @@ extern bool fTrimHeaders;
|
|||
extern uint64_t nMustKeepFullHeaders;
|
||||
/** Target number of headers to download beyond the blocks we have. */
|
||||
// NOTE: this currently only operates when in header trim mode, but it's really independent of that.
|
||||
extern uint64_t nHeaderDownloadBuffer;
|
||||
extern int64_t nHeaderDownloadBuffer;
|
||||
|
||||
//! Check whether the block associated with this index entry is pruned or not.
|
||||
bool IsBlockPruned(const CBlockIndex* pblockindex);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue