Skip to content

Dogecoin miner in rust (only for testnet)

Notifications You must be signed in to change notification settings

rllola/dogecoin-miner-rust

Folders and files

NameName
Last commit message
Last commit date
Aug 15, 2023
Nov 2, 2021
Nov 2, 2021
Nov 2, 2021
Nov 22, 2024
Nov 2, 2021
Nov 22, 2024
Nov 22, 2024
Jan 28, 2022
Nov 22, 2024
Nov 2, 2021
Dec 31, 2020
Jan 28, 2022

Repository files navigation

Dogecoin Miner

This miner is intended to only mine testnet Dogecoin.

Start

Download the latest release : https://github.com/rllola/dogecoin-miner-rust/releases

Notes: Only available for macOS and Linux.

Unzip the executable using tar.

For Linux:

tar -xvf dogecoin-miner-rust-linux-amd64.tar.gz

For macOS:

tar -xvf dogecoin-miner-rust-macos-amd64.tar.gz

Create a miner.toml file next to your executable with the info to connect to your Dogecoin RPC node and/or Litecoin node.

Example of miner.toml file:

mergemining = true
address = "nbMFaHF9pjNoohS4fD1jefKBgDnETK9uPu"

[dogecoin]
ip = "127.0.0.1"
port = 44555
user = "kek"
password = "kek"

[litecoin]
ip = "127.0.0.1"
port = 19332
user = "kek"
password = "kek"

Start the executable:

./miner-rust

Dev

You will need Cargo already installed. See https://doc.rust-lang.org/cargo/getting-started/installation.html

To setup your dev environnement with your regtest nodes you will need docker and docker-compose installed.

$ make up

And stop kill it

$ make down

To run the miner.

$ cargo r src/main.rs

Troubleshooting

Openssl error

  run pkg_config fail: "`\"pkg-config\" \"--libs\" \"--cflags\" \"openssl\"` did not exit successfully: exit status: 1\n--- stderr\nPackage openssl was not found in the pkg-config search path.\nPerhaps you should add the directory containing `openssl.pc'\nto the PKG_CONFIG_PATH environment variable\nNo package 'openssl' found\n"

You need to install libssl-dev.

$ apt install libssl-dev