forked from sipa/bitcoin-seeder
-
Notifications
You must be signed in to change notification settings - Fork 0
transferdev/bitcoin-seeder
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
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.
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Packages 0
No packages published
Languages
- C++ 78.9%
- PHP 10.6%
- C 9.1%
- Perl 1.2%
- Makefile 0.2%