From 0a70bd30618f6a322979f5c215c1a53d367fccb0 Mon Sep 17 00:00:00 2001 From: Matthew Little Date: Fri, 10 Jan 2014 18:31:57 -0500 Subject: [PATCH] updated --- init.js | 33 +++++---------------------------- 1 file changed, 5 insertions(+), 28 deletions(-) diff --git a/init.js b/init.js index 22e7be4..f1e66a8 100644 --- a/init.js +++ b/init.js @@ -6,6 +6,11 @@ var bignum = require('bignum'); var pool = require('./pool.js'); +var logRef = console.log; +console.log = function(s){ + var time = new Date().toISOString(); + logRef(time + ': ' + s); +}; function Coin(options){ this.options = options; @@ -15,34 +20,6 @@ Coin.prototype = {}; var coins = []; -/* -var coins = [ - new Coin({ - name: 'Dogecoin', - symbol: 'doge', - algorithm: 'scrypt', //or sha256, scrypt-jane, quark - reward: 'POW', //or POS - address: 'DDt79i6P3Wro3SD3HSnkRLpMgUGUGdiNhS', - stratumPort: 3334, - difficulty: 8, - daemon: { - bin: 'dogecoind', - port: 8332, - user: 'test', - password: 'test', - blocknotify: '"blockNotify.js doge %s"', - startIfOffline: true - } - }) -];*/ - - -var logRef = console.log; -console.log = function(s){ - var time = new Date().toISOString(); - logRef(time + ': ' + s); -}; - var confFolder = 'coins'; fs.readdir(confFolder, function(err, files){