Skip to content

Commit

Permalink
Auto merge of #4650 - teor2345:patch-1, r=daira
Browse files Browse the repository at this point in the history
Fix a comment typo in pow.cpp

*Documentation and testing not required: comment-only change.*
  • Loading branch information
zkbot committed Aug 6, 2020
2 parents 67ab09a + 5919464 commit d6f527a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,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 a 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;
}

Expand Down

0 comments on commit d6f527a

Please sign in to comment.