Giter Site home page Giter Site logo

ravencoin-stratum-proxy's Introduction

ravencoin-stratum-proxy

Allows you to mine directly to your own local wallet/node with any mining software that uses the stratum protocol.

If you are a windows user and are not familiar with python, a walk-through and auto installer is avaliable for a (hopefully) easy install. See here.

Important Note

This is BETA software mainly tested on test-net, but has been confirmed to work on mainnet. (First known coinbase thanks to @pdath: https://rvn.cryptoscope.io/api/getrawtransaction/?txid=abf95dd29ac6732b5ff068bbc1063ef734268a2f04459f3be8ce2f5ea2d1e529&decode=1 can check by putting the vin0 coinbase into a hex->ascii converter).

Important Note 2

This is not pool software and is meant for solo-mining. All proceeds go to the address of the first miner that connects.

Important Note 3

Mining software will only send a share when it has found a block. No shares for long periods of time is normal behavior.

Table of Contents

  1. Requires python 3.8+
  2. Run python3 -m pip install -r requirements.txt
  • Note that the pysha3 module will need to be compiled so you need some kind of C compiler installed. Alternatively, a precompiled .whl is avaliable in windows/python_modules.

A bat file is avaliable to auto install python and dependencies and generate another bat file to run the stratum.

  1. Ensure your node is configured as required.
  2. (Re)start your node (the qt wallet works).
  3. Download this repo (https://github.com/kralverde/ravencoin-stratum-proxy/archive/refs/heads/master.zip)
  4. Unzip the downloaded file
  5. Open the unzipped folder
  6. Open the windows folder
  7. Double-click generate_bat.bat
  8. After generate_bat.bat completes with no errors, go back to the previous folder.
  9. Double-click run.bat to run the stratum converter.

Requires the following raven.conf options:

server=1
rpcuser=my_username
rpcpassword=my_password
rpcallowip=127.0.0.1

On *nix OS's this file is located at ~/.raven by default. On windows, this file is located at %appdata%\roaming\Raven.

You may need to create the raven.conf file and add those lines if it does not exist.

For testnet you can add testnet=1 to your raven.conf

note:

  • Default Mainnet rpcport = 8766
  • Default Testnet rpcport = 18766

Make sure you configure the rpcport on stratum-converter.py accordingly.

The stratum converter uses the following flags python stratum-converter.py Port_for_miner Ip_of_node Rpc_username Rpc_password Rpc_port Allow_external_connections Is_testnet(optional)

With this in mind we can run testnet from a local node with a local miner:

python3 stratum-converter.py 54325 localhost my_username my_password 18766 false true

And for a local node on mainnet with an external miner:

python3 stratum-converter.py 54325 localhost my_username my_password 8766 true

Connect to it with your miner of choise:

status miner example
✔️ Works T-rex t-rex -a kawpow -o stratum+tcp://PROXY_IP:54325 -u YOUR_WALLET_ADDRESS -p x
✔️ Works TeamRedMiner teamredminer -o stratum+tcp://PROXY_IP:54325 -u YOUR_WALLET_ADDRESS -p x --eth_hash_report=on
✔️ Works Gminer miner --algo kawpow --server stratum+tcp://PROXY_IP:54325 --user YOUR_WALLET_ADDRESS --pass x
❗ Errors NBminer
✔️ Works kawpowminer kawpowminer -P stratum+tcp://YOUR_WALLET_ADDRESS.worker@PROXY_IP:54325

@kralverde#0550 is avaliable on the community ravencoin server (https://discord.gg/jn6uhur) Donate:

  • RVN: RMriWfETGV97hskqH8TvSWVZb9idK6fkU6
  • BTC: bc1q9vs8ttd6sg8dvhwwqh5g6c5wjm0fwkfmq2lgff

ravencoin-stratum-proxy's People

Contributors

kralverde avatar seal-clubber avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

ravencoin-stratum-proxy's Issues

install issue

I get following error when tryin install proxy ( OS : win 8.1 64bit )

checking for python...
downloading python...
Invoke-WebRequest : Request aborted: Failed to create SSL/TLS secure channel.
At line:1 char:1

downloaded python hash:
warning: hash mismatch! exiting and removing the file.
Could Not Find C:\ravencoin-stratum-proxy-master\windows\python.zip
Press any key to continue . . ..

unusual difficulty

xmrig 6.18.1 log:
[2022-11-15 23:11:12.634] miner speed 10s/60s/15m 10.52 10.53 10.38 MH/s max 11.58 MH/s
[2022-11-15 23:11:42.419] net new job from 127.0.0.1:28766 diff 748468G algo kawpow height 2540776
[2022-11-15 23:11:51.798] net new job from 127.0.0.1:28766 diff 748468G algo kawpow height 2540776
[2022-11-15 23:12:04.813] net new job from 127.0.0.1:28766 diff 745353G algo kawpow height 2540777

Why is the difficulty so high, is this normal?

Install problem if some of the folders have space in their name

Example:
I:\mining for fun\ravencoin-stratum-proxy-master\ravencoin-stratum-proxy-master\windows

CURRENT_DIRECTORY will have the correct path but when powershell execute command with:

%CURRENT_DIRECTORY%python.zip, parser will stop at the word mining.

In this case i had to do:
'%CURRENT_DIRECTORY%python.zip'
And for every command with powershell i did this.

Of course not only powershell has problem with spaces. Every other path have to go under " " if they are not already under quotes

Front-end compatible?

Hello,

It's not a bug but a legitimate question: Is there any front-end like MPOS-PHP compatible with this nice piece of software?

session.post() with strong passwords

I tried to use a strong random RPC password, and it failed to create a valid URL for session.post().

For example, try using a password containing &. I suspect the parameters should be passed through something like urllib.parse.quote().

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.