set etherbase on mining script
This commit is contained in:
parent
dfdb917032
commit
28783e77bb
|
@ -1,5 +1,3 @@
|
||||||
|
|
||||||
setInterval(function() {
|
|
||||||
var miner_var;
|
var miner_var;
|
||||||
|
|
||||||
if (admin.miner === undefined) {
|
if (admin.miner === undefined) {
|
||||||
|
@ -9,6 +7,9 @@ setInterval(function() {
|
||||||
miner_var = admin.miner;
|
miner_var = admin.miner;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
miner_var.setEtherbase(web3.eth.accounts[0]);
|
||||||
|
|
||||||
|
setInterval(function() {
|
||||||
var minimalAmount = (web3.eth.getBalance(web3.eth.coinbase) >= 15000000000000000000);
|
var minimalAmount = (web3.eth.getBalance(web3.eth.coinbase) >= 15000000000000000000);
|
||||||
var pendingTransactions = function() {
|
var pendingTransactions = function() {
|
||||||
if (web3.eth.pendingTransactions === undefined || web3.eth.pendingTransactions === null) {
|
if (web3.eth.pendingTransactions === undefined || web3.eth.pendingTransactions === null) {
|
||||||
|
|
Loading…
Reference in New Issue