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

api: add stratum difficulty #489

Merged
merged 1 commit into from
Nov 22, 2024

Conversation

tdb3
Copy link
Contributor

@tdb3 tdb3 commented Nov 17, 2024

Fixes Issue #482
Adds current stratum difficulty to the api/system/info endpoint.

Tested mining on testnet4 (difficulty 1000)

$ curl <bitaxe_IP_address>/api/system/info
{
...
        "stratumDiff":  1000,

then stopped the testnet4 stratum server to induce failover to the secondary stratum server (mainnet, Ocean):

$ curl <bitaxe_IP_address>/api/system/info
{
...
        "stratumDiff":  262144,

Fixes Issue skot#482
Adds current stratum difficulty to the system/info endpoint
@skot
Copy link
Owner

skot commented Nov 22, 2024

This works great, thanks @tdb3 !

@skot skot merged commit 142649e into skot:master Nov 22, 2024
1 check passed
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.

3 participants