Normalize multi-algo chainwork and bootstrap RandomX difficulty
This commit is contained in:
parent
89600821d1
commit
287a84a533
8 changed files with 173 additions and 8 deletions
|
|
@ -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&);
|
||||
|
|
|
|||
Loading…
Reference in a new issue