Simplify difficulty calculation API

This commit is contained in:
Capri 2026-09-16 15:41:51 +00:00
commit e016663524
Signed by: VextaProject
SSH key fingerprint: SHA256:739BZv8LvIDY2tR7lXLy/IQ6MaGTQtYcG9GNvCjmpVM
4 changed files with 14 additions and 30 deletions

View file

@ -665,9 +665,9 @@ static RPCHelpMan getmininginfo()
GetNextWorkRequired(tip, nullptr, consensusParams, ALGO_RANDOMX);
const double sha_difficulty =
GetDifficulty(nullptr, &sha_next);
GetDifficulty(&sha_next);
const double randomx_difficulty =
GetDifficulty(nullptr, &randomx_next);
GetDifficulty(&randomx_next);
difficulties.pushKV(
GetMiningAlgoName(ALGO_SHA256D),