mirror of https://github.com/embarklabs/embark.git
set etherbase on mining script
This commit is contained in:
parent
dfdb917032
commit
28783e77bb
19
js/mine.js
19
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) {
|
||||
|
|
Loading…
Reference in New Issue