fixed mining condition

This commit is contained in:
Marek Kotewicz 2015-06-05 05:52:07 +02:00
parent 1430d02aa0
commit 29a28a63c5
1 changed files with 2 additions and 2 deletions

View File

@ -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();
}