Skip to content

Commit 74b5ce2

Browse files
committed
Merge pull request #7116
cb491e7 Trivial: Fix warning introduced by #7053 by casting to uint64_t (Jorge Timón)
2 parents fa93174 + cb491e7 commit 74b5ce2

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/chainparams.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ class CChainParams
6565
/** Policy: Filter transactions that do not match well-defined patterns */
6666
bool RequireStandard() const { return fRequireStandard; }
6767
int64_t MaxTipAge() const { return nMaxTipAge; }
68-
int64_t PruneAfterHeight() const { return nPruneAfterHeight; }
68+
uint64_t PruneAfterHeight() const { return nPruneAfterHeight; }
6969
/** Make miner stop after a block is found. In RPC, don't return until nGenProcLimit blocks are generated */
7070
bool MineBlocksOnDemand() const { return fMineBlocksOnDemand; }
7171
/** In the future use NetworkIDString() for RPC fields */

src/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3290,7 +3290,7 @@ void FindFilesToPrune(std::set<int>& setFilesToPrune, uint64_t nPruneAfterHeight
32903290
if (chainActive.Tip() == NULL || nPruneTarget == 0) {
32913291
return;
32923292
}
3293-
if (chainActive.Tip()->nHeight <= nPruneAfterHeight) {
3293+
if ((uint64_t)chainActive.Tip()->nHeight <= nPruneAfterHeight) {
32943294
return;
32953295
}
32963296

src/main.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ CAmount GetBlockSubsidy(int nHeight, const Consensus::Params& consensusParams);
222222
*
223223
* Pruning functions are called from FlushStateToDisk when the global fCheckForPruning flag has been set.
224224
* Block and undo files are deleted in lock-step (when blk00003.dat is deleted, so is rev00003.dat.)
225-
* Pruning cannot take place until the longest chain is at least a certain length (100000 on mainnet, 1000 on testnet, 10 on regtest).
225+
* Pruning cannot take place until the longest chain is at least a certain length (100000 on mainnet, 1000 on testnet, 1000 on regtest).
226226
* Pruning will never delete a block within a defined distance (currently 288) from the active chain's tip.
227227
* The block index is updated by unsetting HAVE_DATA and HAVE_UNDO for any blocks that were stored in the deleted files.
228228
* A db flag records the fact that at least some block files have been pruned.

0 commit comments

Comments
 (0)