pooler / cpuminer

CPU miner for Litecoin and Bitcoin
https://bitcointalk.org/index.php?topic=55038.0
Other
2.77k stars 1.21k forks source link

Cookie based authentication #208

Closed liorko87 closed 3 years ago

liorko87 commented 3 years ago

Hello,

I'm trying to use the cpu miner with Cookie based authentication.

At my bitcoin.conf the following line appear: rpcauth=myuser:mypassword

When I'm trying to mine using this command: ./minerd --url=http://url:port --userpass=myuser:mypassword --coinbase-addr=address --threads=4, I received this error: HTTP request failed: The requested URL returned error: 401

Also at the bitcoin debug log, this line appear: ThreadRPCServer incorrect password attempt from url:port.

How can I mine my blocks using cookie based authentication?

pooler commented 3 years ago

In bitcoin.conf, rpcauth takes a hashed password. See the documentation for rpcauth; helper scripts are available in the Bitcoin repo.

liorko87 commented 3 years ago

Thank you for your answer. The username and password are located in .cookie in the data directory of the bitcoin executable.