Skip to content

Commit

Permalink
Eliminate signed/unsigned comparison warning
Browse files Browse the repository at this point in the history
  • Loading branch information
sdaftuar committed Jul 11, 2015
1 parent 04b5d23 commit 59b49cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 59b49cd

Please sign in to comment.