Skip to content

TrueCarry/miningPoolCli

 
 

Repository files navigation

miningPoolCli

GitHub go.mod Go version GitHub

Open-source mining pool client

To use with ton.ninja mining pool, follow the instructions at https://ton.ninja

Source code

You can always get the source code from the github repository page: https://github.com/truecarry/miningPoolCli/

Build

go build -o miningPoolCli main.go

Usage

When the software starts up, it downloads the miner executable file from the release of the given github repository: https://github.com/tontechio/pow-miner-gpu/

Run ./miningPoolCli with flags:

-pool-id wallet address

Example: -pool-id=UQDu6s_r9_wmgWm5QgZuIeLep2fiSg4ijxGcJ0Sw8g4_9lvI
A unique identifier of a pool participant.

-url string

Mining pool API url. (default "https://api.ton.ninja)

-stats bool

If this flag is set, a "stats.json" file will be created 
with automatically updated statistics. (Hive OS support)

-serve-stat bool

If this flag is set, the local server serving "/stat" is started. 
Accepts GET and POST methods. Returns the miner's statistics in 
JSON format. The HTTP port is automatically selected and will be 
printed in the terminal and written to the "serveraddr.txt" file

-handle-kill bool

Allows server to process HTTP requests to "/kill" to 
force the client to terminate. The flag is applied 
only if -serve-stat was previously specified

Do release

To generate a new release, use do-release.sh.

This script will automatically compile the source code for the required OS, set the version from the config/version.go and create an archive

Usage:

./do-release.sh {linux|windows|darwin} {amd64|arm64}

LICENSE

GPL-3.0 License

The text of the license can be obtained in the file "LICENSE"

About

Open-source tonuniverse mining pool client

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 92.5%
  • Shell 7.5%