mirror of
https://github.com/status-im/embark-area-51.git
synced 2025-01-11 06:25:57 +00:00
commit
d1dd25aa17
@ -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();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user