Job: A new mining job was received from the pool.įound: A hash meeting the pool's difficulty (currently 256) was found and will be send to the pool.Īccepted: A hash that was sent to the pool was accepted. In case of a connection error, the miner will automatically try to reconnect to the pool. Usually happens when miner.stop() was called.Įrror: An error occured. ![]() Usually happens right after open.Ĭlose: The connection to the pool was closed. Usually happens shortly after miner.start() was called.Īuthed: The miner successfully authed with the mining pool and the siteKey was verified. Open: The connection to our mining pool was opened. Update: Informs hashesPerSecond, totalHashes and acceptedHashes. ![]() Miner.on(event, callback): Specify a callback for an event. Returns a promise that will resolve once the miner is dead. Miner.kill(): Stop mining, disconnect from the pool, shutdown the server and close the headless browser. Returns a promise that will resolve once the miner is stopped. Miner.stop(): Stop mining and disconnect from the pool. Returns a promise that will resolve once the miner is started. Miner.start(): Connect to the pool and start mining. If not provided the default one is "x".ĭevFee: A donation to send to the developer. This object must contain the following properties: Pool: This allows you to use a different pool. Launch: The options that will be passed to puppeteer.launch(options). Throttle: The fraction of time that threads should be idle. Default is navigator.hardwareConcurrency (number of CPU cores). Interval: Interval between update events in ms. The options object is optional and may contain the following properties: pool-pass A custom stratum pool password, if not provided the default one is 'x'ĬoinHive(siteKey): Returns a promise of a Miner instance. pool-port A custom stratum pool port, it must be used in combination with -pool-host pool-host A custom stratum pool host, it must be used in combination with -pool-port dev-fee A donation to the developer, the default is 0.001 (0.1%) miner-url URL of CoinHive's JavaScript miner, can be set to use a proxy puppeteer-url URL where puppeteer will point to, by default is miner server (host:port) throttle The fraction of time that threads should be idle ![]() interval Interval between updates (logs)
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |