diff --git a/js/mine.js b/js/mine.js index 59f40afc..053e0968 100644 --- a/js/mine.js +++ b/js/mine.js @@ -1,6 +1,8 @@ setInterval(function() { - if(web3.eth.pendingTransactions().length > 0 && !web3.eth.mining) { + + var minimalAmount = (web3.eth.getBalance(web3.eth.coinbase) >= 1500000000000000000); + if(!web3.eth.mining && (!minimalAmount || web3.eth.pendingTransactions().length > 0)) { admin.miner.start(); } else {