forked from sipa/bitcoin-seeder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME
55 lines (42 loc) · 1.87 KB
/
README
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
bitcoin-seeder
==============
Bitcoin-seeder is a crawler for the Bitcoin network, which exposes a list
of reliable nodes via a built-in DNS server.
Features:
* regularly revisits known nodes to check their availability
* bans nodes after enough failures, or bad behaviour
* accepts nodes down to v0.3.19 to request new IP addresses from,
but only reports good post-v0.3.24 nodes.
* keeps statistics over (exponential) windows of 2 hours, 8 hours,
1 day and 1 week, to base decisions on.
* very low memory (a few tens of megabytes) and cpu requirements.
* crawlers run in parallel (by default 24 threads simultaneously).
REQUIREMENTS
------------
$ sudo apt-get install build-essential libboost-all-dev libssl-dev php5-cli php5-curl
**Let's get started**
1. Get your CF API Key (My Settings -> Account -> API Key -> View API Key)
2. Download and start bitcoin-seeder
git clone https://github.com/transfer-dev/bitcoin-seeder
cd bitcoin-seeder
make
chmod +x dnsseed start
./dnsseed -t 250
or
cd {$Data-dir}
screen -S dnsseed /path/to/dnsseed -t 250
to have a screen session, detach the screen session with CTRL+A+D
3. Edit cf-php/cf.php file
open cf.php in an editor of your choice
and fill in
$domain ="domain.com";
$name = "txdns"; //subdomain e.g. name.domain.com
$number_of_records = 10; //maximum n A records with $name...
$user = "emailofcloudflareaccount"; //user name
$key = "yourapikey"; //key for cloudflare api found in account settings
$seed_dump = "/path/to/dnsseed.dump"; //absolute path to dnsseed.dump in the bitcoin-seeder root directory
accordingly. (The number_of_records in the table displayed above is "10" and I think that's a good number.)
4. Have a cronjob run cf-php regularly
crontab -e
* * * * * php ~/bitcoin-seeder/cf-php/cf.php
That should be it. You now have your own TX DNS seed.