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

Get the current pool through the API / Change the priority of the pool if there are more than two. #40

Closed
ORGaniZMo opened this issue Nov 13, 2017 · 7 comments
Assignees
Milestone

Comments

@ORGaniZMo
Copy link

Can you add the ability to get the current pool through the API and also to change the priority of the pool if there are more than two?

@xmrig xmrig mentioned this issue Nov 14, 2017
22 tasks
@xmrig
Copy link
Owner

xmrig commented Nov 14, 2017

Good idea, in TODO now xmrig/xmrig#106
Thank you.

@mb00g
Copy link

mb00g commented Nov 21, 2017

May be added the ability to split hash into different pools and coins. For examples, after 100 shares move from pool A (xmr) to pool B (another cryptonight coin)?

@andyval
Copy link

andyval commented Dec 9, 2017

I was thinking the ability to use split mining between two different wallets.

@sleever
Copy link

sleever commented Dec 28, 2017

Bump, I would like this as well!

@xmrig
Copy link
Owner

xmrig commented Feb 28, 2018

In dev branch added graceful reload support, also config file with pools now available via API and config change via API is planed, more details: #119

@xmrig xmrig self-assigned this Feb 28, 2018
@xmrig xmrig added this to the v2.5 milestone Feb 28, 2018
@xmrig
Copy link
Owner

xmrig commented Mar 4, 2018

Now config can be changed via HTTP API too, via PUT /1/config endpoint. Please note to get or update config via API you must set access token and set "restricted": false.

Example:

    "api": {
        "port": 4466,
        "access-token": "SECRET",
        "worker-id": null,
        "ipv6": true,
        "restricted": false
    }

Curl example:

curl -v --data-binary @config.json -X PUT -H "Content-Type: application/json" -H "Authorization: Bearer SECRET" http://127.0.0.1:4466/1/config

@RCTORONTO
Copy link

old thread I know but is there any examples for how to curl our way to switching pools via php and the api? lets say the objective is simply to set the first pool in the pools array to enabled: false

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

No branches or pull requests

6 participants