Browse Source

Remove unnecessary call to GetBlockHeader()

pull/305/head
Duke Leto 4 years ago
parent
commit
bf9af6ace3
  1. 4
      src/pow.cpp

4
src/pow.cpp

@ -21,7 +21,6 @@
#include "pow.h"
#include "consensus/upgrades.h"
#include "arith_uint256.h"
#include "chain.h"
#include "chainparams.h"
@ -30,7 +29,6 @@
#include "streams.h"
#include "uint256.h"
#include "util.h"
#include "sodium.h"
#ifdef ENABLE_RUST
@ -779,8 +777,6 @@ CChainPower GetBlockProof(const CBlockIndex& block)
if (fNegative || fOverflow || bnWorkTarget == 0)
return CChainPower(0);
CBlockHeader header = block.GetBlockHeader();
return CChainPower(0, bnStakeTarget, (~bnWorkTarget / (bnWorkTarget + 1)) + 1);
}

Loading…
Cancel
Save