Skip to content
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.

validateHeaderWork looks like dead code #169

Open
sr-gi opened this issue May 30, 2020 · 0 comments
Open

validateHeaderWork looks like dead code #169

sr-gi opened this issue May 30, 2020 · 0 comments
Labels
solidity Needs work in Solidity folder

Comments

@sr-gi
Copy link
Contributor

sr-gi commented May 30, 2020

validateHeaderWork is never used within the codebase, and it is doing the same as:

// Require that the header has sufficient work
_digest = _header.hash256View();
if(uint256(_digest).reverseUint256() > _target) {
return ERR_LOW_WORK;

It should probably be removed.

@prestwich prestwich added the solidity Needs work in Solidity folder label May 30, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
solidity Needs work in Solidity folder
Projects
None yet
Development

No branches or pull requests

2 participants