After setting up my VPS as a full node, I thought it would be nice if I had some way of displaying it to the world.
My Nodehttps://odin.vikingserv.netGitHub Code: https://github.com/craigwatson/bitcoind-statusTravis CI: https://travis-ci.org/craigwatson/bitcoind-statusDonationsBTC donations are also graciously accepted both direct to
174N2KwMzKYvYkCSx1kezrzfSQuJQEZY9T and also
via ChangeTip TL;DR - Main Features- List of connected nodes, with optional geolocation
- Simple file-based cache system to limit RPC calls
- Ships with two different CSS styles - "light" (default) and "dark"
- Generates and displays a donation QR code for donations
- IP-based whitelist for clearing/bypassing the cache
- Displays historical number of connections (requires the use of a stats-collecting cron job)
- Displays graph showing peer type breakdown over time (requires the use of another stats-collecting cron job)
Full Features List- Peer list is filterable - you can ignore a set list of peer IPs and also Tor peers
- Extra agent strings can be added to the peer type graph
- Fully responsive mobile design, including connected nodes table
- Can bypass the file-based cache system entirely
- Displays free disk space
- Can either display the node's IP address via the PHP $_SERVER variable, or from the Bitcoin Daemon
- Display if the node is running on testnet
- Display the currently running Bitcoind version
- Optionally display the remote port when listing connected peers.
- IP-based geolocation flags for both node and peer IP addresses
- Optional "Fork me on GitHub" ribbon (toggleable via config.php, enabled by default)
- Testing includes PHP syntax checking and PEAR standards compliance
Please note that disabling the cache could overload your Bitcoind with RPC calls, and also cause geolocation errors (the current geolocation provider is rate-limited to 120 requests per minute). Please use with caution!
I'd really appreciate it if everyone could keep the ribbon enabled to try and boost exposure for the code
ContributionsPlease feel free to comment, suggest (or better still, contribute!) new features or improvements.
Wanted - PHP Test Writers!I'd like to get more test coverage of my code to make contributions even easier - if anyone has any experience in writing PHP tests (either PHPunit or something else), please reach out.