mirror of
https://github.com/status-im/embark-area-51.git
synced 2025-01-11 22:44:45 +00:00
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…
x
Reference in New Issue
Block a user