-
Notifications
You must be signed in to change notification settings - Fork 83
/
Copy pathwork.php
42 lines (30 loc) · 824 Bytes
/
work.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<?php
/**
* @author Han Lin Yap < http://zencodez.net/ >
* @copyright 2011 zencodez.net
* @license http://creativecommons.org/licenses/by-sa/3.0/
* @package Miner
* @version 1.0 - 2011-06-18
*
* Feel free to donate: 1NibBDZPvJCm568CZMnJUBJoPyUhW7aSag
*/
require_once(dirname(__file__) . '/miner.php');
set_time_limit(0);
// Example
$host = 'pit.deepbit.net';
$port = 8332;
$user = 'username';
$pass = 'password';
$miner = new Miner($host, $port, $user, $pass);
# Param1: How many seconds it should run
# Param2: How long it should sleep after each getwork
# Param3: How many nonce it should try before taking next getwork
$miner->run();
/*
------------------------------
If you want to mine on bitp.it
*/
# Parameters: ClientID and Domain
$miner = new BitpitMiner(4384, 'zencodez.net');
$miner->run();
?>