Normalize multi-algo chainwork and bootstrap RandomX difficulty

This commit is contained in:
Capri 2026-09-15 18:16:29 +00:00
commit 287a84a533
Signed by: VextaProject
SSH key fingerprint: SHA256:739BZv8LvIDY2tR7lXLy/IQ6MaGTQtYcG9GNvCjmpVM
8 changed files with 173 additions and 8 deletions

View file

@ -336,6 +336,9 @@ public:
};
arith_uint256 GetBlockProof(const CBlockIndex& block);
arith_uint256 GetBlockProof(
const CBlockIndex& block,
const Consensus::Params& params);
/** Return the time it would take to redo the work difference between from and to, assuming the current hashrate corresponds to the difficulty at tip, in seconds. */
int64_t GetBlockProofEquivalentTime(const CBlockIndex& to, const CBlockIndex& from, const CBlockIndex& tip, const Consensus::Params&);