The current miner is naive and a better implementation is coming soon.
You can easily get access to Kupo and Ogmios with Demeter. Once you have a project in Demeter you can connect Ogmios and Kupo extensions for mainnet. Make sure to toggle
Expose http port
in each extensions' settings.
Once you have URLs for Kupo and Ogmios, create a .env
file in the root of the
project with the following content:
KUPO_URL="https://<Kupo URL>"
OGMIOS_URL="wss://<Ogmios URL>"
You'll need to create a wallet for the miner which can be done with the following command:
deno task cli init
Then run the following command to get the miner address:
deno task cli address
You'll need to fund this address with some $ADA to pay for transaction fees.
After everything is setup, you can run the miner with the following command:
deno task cli mine
- works on windows
- works on linux
You can check releases for pre-built binaries/exes but its always best for you to build on your own
CUDA requried to be installed before building.
Make sure server/stratum is working. This must be already running.
Run server/stratum with
deno run --allow-all miner/server.ts "mine"
binary/executable must be built
To build you need you need to install:
These libraries below for linux (instructions are for ubunutu)
sudo apt-get install pkg-config libssl-dev
sudo apt-get install build-essential
Go into tuna_cuda_miner directory with
cd tuna_cuda_miner
cargo build --release
binary will be in /target/release
cd /target/release
Run with
./tuna_cuda_miner <deno server link>
Server does not need to be local, it can be remote as such
./tuna_cuda_miner https://my-aws-server.com
If no server is specified it will be http://localhost:8008
by default
Note: this is a very quick implementation of a CUDA miner. Code is poor quality and could be unstable.
The policy for the TUNA token is
279f842c33eed9054b9e3c70cd6a3b32298259c24b78b895cb41d91a