Merge #388: Remove unused line giving a warning

8682dde Remove unused line giving a warning (Jorge Timón)
This commit is contained in:
Gregory Sanders 2018-07-11 09:32:30 -04:00
commit 13dda38880
No known key found for this signature in database
GPG key ID: F3F68E2D86A48FDB

View file

@ -3898,7 +3898,6 @@ std::vector<unsigned char> GenerateCoinbaseCommitment(CBlock& block, const CBloc
bool ContextualCheckBlockHeader(const CBlockHeader& block, CValidationState& state, const Consensus::Params& consensusParams, const CBlockIndex* pindexPrev, int64_t nAdjustedTime)
{
const int nHeight = pindexPrev == NULL ? 0 : pindexPrev->nHeight + 1;
// Check proof of work
if (!CheckChallenge(block, *pindexPrev, consensusParams))
return state.DoS(100, false, REJECT_INVALID, "bad-diffbits", false, "incorrect proof of work");