smartm0use / smartino

Android Bitcoin Core Full Node
MIT License
61 stars 2 forks source link

smartino

Bash scripts for installing Bitcoin Core on Android and run a full node on a phone!

Image

That's possible because:

Why a full node on a phone

You can run a full node on a laptop and have the comfort of having screen and keyboard, not to mention to have a battery backup in case of a power cut.\ You can run a full node on a Raspberry Pi or other single-boar computer and have advantages such as less space required and less electricity demand.\ With a phone you run a full node and you can get all the pros of both laptop and Raspberry Pi. In addition a phone offers ubiquity and portability!

Based on...

Installation is based on the process described in this tutorial (found here), which in turn is a modified version of BitNodes.io script.

Here are some enhancements:

*It may be not recognized by Android. Please be aware Android supports exFAT/NTFS/EXT4/F2FS partitions up to version 8.1 (Oreo)

Requirements

WARNING: The use of low-quality chargers/USB cables, or with specifications that differ from those indicated by the manufacturer, may damage the phone's battery.
Ensure that the phone indicates that the battery is charging when the charger is connected via the USB hub; otherwise, it is advisable to change the hub. If the battery icon does not show charging status, the recharging process may still occur, but there is a risk of damaging the battery to the point of causing it to swell!

Root privileges

If you are not able or do not want to root your phone you can use the original guide that works - according to what the author says - only with some Samsung models having DeX support. Actually root is not required only in case Termux app mounts your removable/external drive under /storage path. In that case you have write access to drive but with a limit: the only writable location on the external drive is Android/data/com.termux/files, a private Termux directory. If this trade-off is ok for you then you can go for original guide and waive the enhancements described above.

Installation

EXTRAS - Give more power to your node!

Remote access using SSH

If you find awkward tapping on a small screen, you may consider to get remote access to your phone following SSH Basics by Andronix or these steps:

Running node under Tor

Since you are using a mobile device you may use a SIM or an eSIM with a mobile data plan. In this case port forwarding to enable incoming connections to your node could not work due mobile operator limitations. Using Tor is the solution.