forked from 0xDEADFACE/stratum-mining
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathINSTALL
65 lines (49 loc) · 2.08 KB
/
INSTALL
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
Installation Instructions
=========================
Step 0: Install novacoind
It MUST be a recent version of novacoind
Set it up and start it!
Downloading the blockchain can take some time!
Step 1: Install the stratum core
git pull https://github.com/slush0/stratum.git
sudo easy_install stratum
(or if using alternate python: sudo /usr/local/bin/easy_install stratum)
Step 2: Pull a copy of the miner
git pull https://github.com/CryptoManiac/stratum-mining.git
Step 3: Configure the Miner
cp conf/config_sample.py conf/config.py
make your changes to conf/config.py
Make sure you set the values in BASIC SETTINGS! These are how to connect to novacoind
and where your money goes! Please read comments carefully, this may be helpful.
Step 4: Run the pool
twistd -ny launcher.tac -l -
OR - using alternate python
/usr/local/bin/twistd -ny launcher.tac -l -
You can now set the URL on your stratum proxy (or miner that supports stratum) to:
http://YOURHOSTNAME:3333
Novacoind blocknotify Setup
=========================
Although scary (for me), this is actually pretty easy.
Step 1: Set Admin Password
Ensure that you have set the ADMIN_PASSWORD_SHA256 parameter in conf/config.py
To make life easy you can run the generateAdminHash script to make the hash
./scripts/generateAdminHash.sh <password>
Step 2: Test It
Restart the pool if it's already running
run ./scripts/blocknotify.sh --password <password> --host localhost --port 3333
Ensure everything is ok.
Step 3: Run bitcoind with blocknotify
Stop bitcoind if it's already running
bitcoind stop
Wait till it ends
novacoind -blocknotify="/absolute/path/to/scripts/blocknotify.sh --password <password> --host localhost --port 3333"
Step 4: Adjust pool polling
Now you should be able to watch the pools debug messages for awhile and see the blocknotify come in
once you are sure it's working edit conf/config.py and set
PREVHASH_REFRESH_INTERVAL = to the same value as MERKLE_REFRESH_INTERVAL
restart the pool
Problems????
=========================
Is your firewall off?
Is novacoind running?
TODO: are there other problems?