node-stratum
node-stratum copied to clipboard
Unhandled rejection Error: -24,Unauthorized worker,
Unhandled rejection Error: -24,Unauthorized worker, how do i fix it im using everything default copy and pasted except for this
client.connect(3333, 'localhost').then(function(socket){
socket.stratumSubscribe('NodeMiner');
socket.stratumAuthorize('user','password');
socket.stratumSubmit('user', 'job_id', 'extranonce2', 'ntime', 'nonce');
//socket.stratumSend(data, true); //send a stratum command other than the previous ones
//socket.send(data); // send raw data through the socket
});