Skip to content

Commit

Permalink
fix processing of block headers
Browse files Browse the repository at this point in the history
  • Loading branch information
backpacker69 committed Mar 30, 2019
1 parent 2caf81a commit 6b6749f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/net_processing.cpp
Expand Up @@ -2367,9 +2367,7 @@ bool static ProcessMessage(CNode* pfrom, const std::string& strCommand, CDataStr
const CBlockIndex *pindex = nullptr;
CValidationState state;

uint32_t tmp1;
uint256 tmp2;
if (!ProcessNewBlockHeaders(tmp1, tmp2, {cmpctblock.header}, false, state, chainparams, &pindex)) {
if (!ProcessNewBlockHeaders(pfrom->nPoSTemperature, pfrom->lastAcceptedHeader, {cmpctblock.header}, false, state, chainparams, &pindex)) {
int nDoS;
if (state.IsInvalid(nDoS)) {
if (nDoS > 0) {
Expand Down

0 comments on commit 6b6749f

Please sign in to comment.