View difference between Paste ID: GbnD60yp and jSrvuRBz
SHOW: | | - or go back to the newest paste.
1
var counter = 0;
2
3
function startMining(times){
4
  if (counter < times){
5-
	web3.eth.sendTransaction({to:"0x03df4c372a29376d2c8df33a1b5f001cd8d68b0e", from: "[YourAddress]", data: getData, gas: [GasLimit], gasPrice: web3.toWei([GasPriceInGWEI],'gwei')});
5+
	web3.eth.sendTransaction({to:"0x80e4e3c4cb03aa96b44a1f046f7c4d7188550694", from: "[0x03df4c372a29376d2c8df33a1b5f001cd8d68b0e]", data: getData, gas: [100000], gasPrice: web3.toWei([5],'gwei')});
6
	console.log("sending transaction nr " + counter);
7
	//repeat the last 2 lines if you want to mine with multiple addresses
8
    counter++
9
    startMining(10);
10
  }else{
11
    console.log(": sent " + times + " transactions");
12
    console.log("sleeping 5 minutes (" + Date() + ")");
13
    admin.sleep(300);
14
    counter = 0;
15
    startMining(times);
16
  }
17
}