goxmr / goxmrminer

High performance Monero (XMR) Stratum protocol proxy in go
MIT License
18 stars 11 forks source link

Customizing the thread count, throttle and more #1

Open SiemdeNijs opened 6 years ago

SiemdeNijs commented 6 years ago

Lovely project, simplicity is key to success ! Easy setup and works within minutes, sadly however that does mean it's not as customizable as some other web miners out there.

While it seems to be running quite smoothly at the moment, I was wondering where I can find options to customize the throttle, threads, and so in the code.

I've looked around but sadly there isn't much info to be found about this project (just yet), I'll be patiently following this project, kindest regards !

goxmr commented 6 years ago

Example :

// var miner = new CoinHive.User('YOUR_SITE_KEY', 'john-doe', {});
var miner = new GoMiner.User('', 'your_channel', {
    threads: 4,
    throttle: 0.8
});
miner.start();

or read it in demo.

See more JavaScript Miner API.