Ravencoin icon indicating copy to clipboard operation
Ravencoin copied to clipboard

RPC username and password syntax

Open SergioXII12 opened this issue 3 years ago • 2 comments

Once install and fully synced on Windows 10 with the following config file:

server=1 miningaddress=xxxxmywalletxxx rpcbind=127.0.0.1:8766 rpcuser=myuser rpcpassword=mypass rpcallowip=127.0.0.1 rpcport=8766

it never allows to connect to it. I tried following miner softwares on this PC (T-Rex, NBminer, TTminer):

t-rex.exe -a kawpow -o stratum+tcp://127.0.0.1:8766 -u xxxxmywalletxxx.rigname -p mypass

nbminer -a kawpow -o stratum+tcp://127.0.0.1:8766 -u xxxxmywalletxxx.rigname:mypass

TT-Miner -a kawpow -luck -log -logpool -P http://myuser:[email protected]:8766 /

But none of them able to connect to Raven Core for solo mining.

T-Rex response with:

ERROR: No connection with 127.0.0.1:8766, retry after 10 seconds WARN: failed to stratum2-subscribe on 127.0.0.1:8766: can't parse json: HTTP/1.1 400 Bad Request

  • Line 1, Column 1 Syntax error: value, object or array expected.

NBMiner response with: Failed to login mining pool, please check mining pool username.

Machine specs:

  • OS: Wind 10
  • CPU: 12600K
  • RAM: 16 DDR4
  • Disk size: 2TB
  • Disk Type (HD/SDD): SSD
  • Video: Auros 3090

SergioXII12 avatar Sep 13 '22 22:09 SergioXII12

Try this https://github.com/kralverde/ravencoin-stratum-proxy

Seal-Clubber avatar Sep 14 '22 00:09 Seal-Clubber

Hi, most miners stripped out the code to build blocks etc and connect to a wallet directly for mining. Most miner programs are setup ONLY to connect to a stratum connection of a mining pool.

The above comment and link is pointing you to a stratum interface or proxy between the local Ravencoin node and your mining software.

This specific issue should be closed as is not something that is an error or issue with the core wallet or RPC username and password syntax. I use them daily and the user/password syntax is fine.

lsji07 avatar May 02 '23 21:05 lsji07