Merge pull request #3332 from AjaxPop/patch-2

Use nullptr instead of null
This commit is contained in:
chromatic 2023-09-19 13:17:31 -07:00 committed by GitHub
commit 28fbf0f917
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -49,9 +49,9 @@ double GetDifficulty(const CBlockIndex* blockindex)
{
// Floating point number that is a multiple of the minimum difficulty,
// minimum difficulty = 1.0.
if (blockindex == NULL)
if (blockindex == nullptr)
{
if (chainActive.Tip() == NULL)
if (chainActive.Tip() == nullptr)
return 1.0;
else
blockindex = chainActive.Tip();