Skip to content

feat: add user side hashrate - #289

Draft
hunjixin wants to merge 1 commit into
mainfrom
feat/add_report_hashrate_in_sc
Draft

feat: add user side hashrate#289
hunjixin wants to merge 1 commit into
mainfrom
feat/add_report_hashrate_in_sc

Conversation

@hunjixin

Copy link
Copy Markdown
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
Copy Markdown
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

// 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 {

@alvin-reyes alvin-reyes Aug 24, 2024

Copy link
Copy Markdown
Contributor

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