From 28783e77bba37e8ac6b4eebf4a4fc9b322669ba6 Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Fri, 31 Jul 2015 20:13:05 -0400 Subject: [PATCH] set etherbase on mining script --- js/mine.js | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/js/mine.js b/js/mine.js index 8bf00e01..c03fe5ec 100644 --- a/js/mine.js +++ b/js/mine.js @@ -1,14 +1,15 @@ +var miner_var; + +if (admin.miner === undefined) { + miner_var = miner; +} +else { + miner_var = admin.miner; +} + +miner_var.setEtherbase(web3.eth.accounts[0]); setInterval(function() { - var miner_var; - - if (admin.miner === undefined) { - miner_var = miner; - } - else { - miner_var = admin.miner; - } - var minimalAmount = (web3.eth.getBalance(web3.eth.coinbase) >= 15000000000000000000); var pendingTransactions = function() { if (web3.eth.pendingTransactions === undefined || web3.eth.pendingTransactions === null) {