fixed mining condition
This commit is contained in:
parent
1430d02aa0
commit
29a28a63c5
|
@ -10,9 +10,9 @@ setInterval(function() {
|
||||||
console.log("=== start mining");
|
console.log("=== start mining");
|
||||||
admin.miner.start();
|
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 (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");
|
console.log("=== stop mining");
|
||||||
admin.miner.stop();
|
admin.miner.stop();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue