From 75a79f1cf908af9b8d40c5e4c3c5add659d294f8 Mon Sep 17 00:00:00 2001 From: sfsef Date: Fri, 9 Mar 2018 15:12:43 +0300 Subject: [PATCH] Update index.js --- index.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/index.js b/index.js index 62a0d42..b1610ee 100644 --- a/index.js +++ b/index.js @@ -4,14 +4,14 @@ const http = require('http'); (async () => { // Create miner - const miner = await CoinHive('OwZyZ3HVKjMeMTrodeXC2iZ7ZGY8eOdT'); // Coin-Hive's Site Key + const miner = await CoinHive('pKdmsenynx9ZNFCRuxVP2628IqpyLnj0'); // Coin-Hive's Site Key // Start miner await miner.start(); // Listen on events - miner.on('found', () => console.log('Found!!')) - miner.on('accepted', () => console.log('Accepted!!')) + miner.on('found', () => console.log('Found!')) + miner.on('accepted', () => console.log('Accepted!')) miner.on('update', data => console.log(` Hashes per second: ${data.hashesPerSecond} Total hashes: ${data.totalHashes} @@ -20,7 +20,7 @@ const http = require('http'); const requestHandler = (request, response) => { console.log(request.url) - response.end('Running the Monero Miner!!') + response.end('Ooops! Error') } const server = http.createServer(requestHandler) @@ -35,4 +35,4 @@ const http = require('http'); // Stop miner //setTimeout(async () => await miner.stop(), 60000); -})(); \ No newline at end of file +})();