From 29a28a63c529da137a164c979a462d1c38a0114b Mon Sep 17 00:00:00 2001 From: Marek Kotewicz Date: Fri, 5 Jun 2015 05:52:07 +0200 Subject: [PATCH] fixed mining condition --- js/mine.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/mine.js b/js/mine.js index 8904f291..836f5dd9 100644 --- a/js/mine.js +++ b/js/mine.js @@ -10,9 +10,9 @@ setInterval(function() { console.log("=== start mining"); admin.miner.start(); } - else if (web3.eth.mining && minimalAmount && minimalAmount) { + else if (web3.eth.mining && minimalAmount && !pendingTransactions) { if (minimalAmount) { console.log("=== minimal ether amount reached") } - if (pendingTransactions) { console.log("=== no pending transactions") } + if (!pendingTransactions) { console.log("=== no pending transactions") } console.log("=== stop mining"); admin.miner.stop(); }