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

feat: add user side hashrate #289

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Conversation

hunjixin
Copy link
Contributor

Review Type Requested (choose one):

  • Glance - superficial check (from domain experts)
  • Logic - thorough check (from everybody doing review)

Summary

Provide a one line summary and link to any relevant references

Task/Issue reference

Closes: https://github.com/Lilypad-Tech/internal/issues/188

Details (optional)

Add any additional details that might help Code Reviewers digest this PR

How to test this code? (optional)

Anything else? (optional)

@hunjixin
Copy link
Contributor Author

  1. hashrate also maybe a fake value
  2. add a new field, i am sure the impact for sc upgrade

@hunjixin hunjixin marked this pull request as draft August 20, 2024 10:04
@@ -95,7 +96,7 @@ contract LilypadPow is Initializable, OwnableUpgradeable {
}

// submitWork miner submint a nonce value, sc check the difficulty and emit a valid pow event when success
function submitWork(uint256 nonce, string calldata nodeId) external {
function submitWork(uint256 nonce, string calldata nodeId, uint256 report_hashrates) external {
Copy link
Contributor

@alvin-reyes alvin-reyes Aug 24, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is it report_hashrates? Should it be report_hashrate (without 's')?

Also, I think we should name it to computed_hashrate for clarity.

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

Successfully merging this pull request may close these issues.

2 participants