aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorSuhas Daftuar <sdaftuar@gmail.com>2015-07-11 06:52:35 -0400
committerSuhas Daftuar <sdaftuar@gmail.com>2015-07-11 07:05:18 -0400
commit59b49cd07482494d9a99068af502be9ceda41ed2 (patch)
treedcc8372a0a88dd9307ae6adf2d8a354077d92036 /src/main.cpp
parent04b5d235f1560b8285591b963d3636f7ddf74563 (diff)
downloadbitcoin-59b49cd07482494d9a99068af502be9ceda41ed2.tar.xz
Eliminate signed/unsigned comparison warning
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 87750f9ea3..875b7b7068 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -2849,7 +2849,7 @@ bool AcceptBlock(CBlock& block, CValidationState& state, CBlockIndex** ppindex,
// blocks which are too close in height to the tip. Apply this test
// regardless of whether pruning is enabled; it should generally be safe to
// not process unrequested blocks.
- bool fTooFarAhead = (pindex->nHeight - chainActive.Height()) > MIN_BLOCKS_TO_KEEP;
+ bool fTooFarAhead = (pindex->nHeight > int(chainActive.Height() + MIN_BLOCKS_TO_KEEP));
// TODO: deal better with return value and error conditions for duplicate
// and unrequested blocks.