Propagate RandomX hashing failures safely

This commit is contained in:
Capri 2026-09-14 21:09:32 +00:00
commit 6e0ae5dd3c
Signed by: VextaProject
SSH key fingerprint: SHA256:739BZv8LvIDY2tR7lXLy/IQ6MaGTQtYcG9GNvCjmpVM
3 changed files with 10 additions and 15 deletions

View file

@ -102,7 +102,7 @@ public:
* The input is the canonical serialized 80-byte block header.
* The seed is supplied in raw uint256 serialization byte order.
*/
uint256 GetRandomXPoWHash(const uint256& seed) const;
bool GetRandomXPoWHash(const uint256& seed, uint256& result) const;
int64_t GetBlockTime() const
{