From 6559cfdd5c501b385a80a8c05f7c7feaffb25757 Mon Sep 17 00:00:00 2001 From: Aakil Fernandes Date: Tue, 8 Mar 2016 14:13:11 -0500 Subject: [PATCH] miner stop config threads --- js/mine.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/js/mine.js b/js/mine.js index c685ae50a..7d7944159 100644 --- a/js/mine.js +++ b/js/mine.js @@ -39,7 +39,7 @@ miner_obj.start(config.threads); return; } - miner_obj.stop(); + miner_obj.stop(config.threads); fundAccount(config, miner_obj, function () { if (config.mine_periodically) start_periodic_mining(config, miner_obj); @@ -64,7 +64,7 @@ console.log("== Account funded"); blockWatcher.stopWatching(); - miner_obj.stop(); + miner_obj.stop(config.threads); cb(); } }); @@ -106,7 +106,7 @@ next_block_in_ms = (config.interval_ms - ms_since_block); } - miner_obj.stop(); + miner_obj.stop(config.threads); console.log("== Looking for next block in " + next_block_in_ms + "ms"); setTimeout(function () { @@ -130,7 +130,7 @@ web3.eth.filter("latest").watch(function () { if (!pendingTransactions()) { console.log("== No transactions left. Stopping miner..."); - miner_obj.stop(); + miner_obj.stop(config.threads); } }); };