Skip to content

Use suggest difficulty#113

Open
Priceless-P wants to merge 1 commit into
dmnd-pool:masterfrom
Priceless-P:feat/handle_suggest_difficulty
Open

Use suggest difficulty#113
Priceless-P wants to merge 1 commit into
dmnd-pool:masterfrom
Priceless-P:feat/handle_suggest_difficulty

Conversation

@Priceless-P
Copy link
Copy Markdown
Collaborator

@Priceless-P Priceless-P commented Jul 24, 2025

This pr modifies the proxy to use mining.suggest_difficulty if sent by the mining machine.

Depends on dmnd-pool/stratum#13

Fixes: #112

@Priceless-P Priceless-P requested a review from jbesraa July 24, 2025 14:19
self.difficulty_mgmt.current_difficulties.clear(); // Clear the initial difficulty
self.difficulty_mgmt
.add_difficulty(request.difficulty as f32);
}
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.

In think we should also stop doing diff adjustment and close the connection if the suggested diff is completely wrong?

Copy link
Copy Markdown
Collaborator Author

@Priceless-P Priceless-P Jul 30, 2025

Choose a reason for hiding this comment

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

How do we determine if the suggested diff is completely wrong? @Fi3

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

Successfully merging this pull request may close these issues.

Handle suggest_difficulty from mining machine

2 participants