Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proof of Work Validation #301

Closed
CjS77 opened this issue May 20, 2019 · 1 comment
Closed

Proof of Work Validation #301

CjS77 opened this issue May 20, 2019 · 1 comment

Comments

@CjS77
Copy link
Collaborator

CjS77 commented May 20, 2019

Given a block header, validate whether the proof of work is valid.
Non-mining nodes must be able to validate proof of work to check whether

  • A given block has a valid PoW claim
  • A new block has been added to the longest PoW chain

Since Monero frequently changes PoW parameters, this should be implemented as a trait with the following functions:

  • check_pow(data, pow_claim) -> bool //Is the data (usually block header) consistent with the PoW claim?
  • is_applicable_to_block(n: usize) -> bool //Is this PoW implementation used for this block height?
@philipr-za philipr-za self-assigned this May 22, 2019
@philipr-za philipr-za removed their assignment Jul 24, 2019
@CjS77
Copy link
Collaborator Author

CjS77 commented Jul 24, 2019

To close this issue, we just need to be able to mock the two functions, since the RandomX PoW stuff will be part of a larger effort / epic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants