Browse Source

fix typo in comment of chain.cpp

0.16
Johannes Kanig 7 years ago committed by GitHub
parent
commit
f902e40c76
  1. 2
      src/chain.cpp

2
src/chain.cpp

@ -128,7 +128,7 @@ arith_uint256 GetBlockProof(const CBlockIndex& block) @@ -128,7 +128,7 @@ arith_uint256 GetBlockProof(const CBlockIndex& block)
// We need to compute 2**256 / (bnTarget+1), but we can't represent 2**256
// as it's too large for an arith_uint256. However, as 2**256 is at least as large
// as bnTarget+1, it is equal to ((2**256 - bnTarget - 1) / (bnTarget+1)) + 1,
// or ~bnTarget / (nTarget+1) + 1.
// or ~bnTarget / (bnTarget+1) + 1.
return (~bnTarget / (bnTarget + 1)) + 1;
}

Loading…
Cancel
Save