From d51dbaf4aeaba7a6d35b221b35ad6d6e402a3a73 Mon Sep 17 00:00:00 2001 From: Joris Bontje Date: Wed, 2 Sep 2015 10:13:56 +0200 Subject: [PATCH] stop blockWatcher filter with correct method name. fixes #74 --- js/mine.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/js/mine.js b/js/mine.js index 324acd5e..c685ae50 100644 --- a/js/mine.js +++ b/js/mine.js @@ -4,7 +4,7 @@ (function() { var main = function () { /* TODO: Find a way to load mining config from YML. - + if (!loadScript("config.js")) { console.log("== config.js not found"); } @@ -63,7 +63,7 @@ if (accountFunded()) { console.log("== Account funded"); - blockWatcher.stop(); + blockWatcher.stopWatching(); miner_obj.stop(); cb(); } @@ -124,7 +124,7 @@ console.log("== Pending transactions! Looking for next block..."); miner_obj.start(config.threads); }); - + if (config.mine_periodically) return; web3.eth.filter("latest").watch(function () { @@ -137,4 +137,3 @@ main(); })(); -