Remove unused line giving a warning

This commit is contained in:
Jorge Timón 2018-07-10 23:51:26 +02:00
parent c6f9fc0ba0
commit 8682ddec8e
No known key found for this signature in database
GPG key ID: 8866C18EA1C944A2

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");