Skip to content

Commit

Permalink
fixed mining condition
Browse files Browse the repository at this point in the history
  • Loading branch information
debris committed Jun 5, 2015
1 parent 1430d02 commit 29a28a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/mine.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit 29a28a6

Please sign in to comment.