Creates a bootstrap with blockchain data and stores it.
Latest .zip is symlinked to bootstrap_txindex_latest.zip.
Sets up a daemon prepared to become a MN for ubuntu 16, 18 and Debian for the user that runs it.
The following steps are followed:
- Cleanup: Stops any bzedge service running for current user and removes old binaries and bootsrap.(if any)
- Checks the SSH port used to connect to the machine and whitelists it in the firewall.
- Checks for ports used between STARTINGRPCPORT(=1980) and ENDINGRPCPORT(=2080) in order to use one of them as RPC port for BZE daemon.
- Detects the IP address of the VPS and prompts the user to use it in MN settings or provide another IP.
- Creates swap file depending on the memory available on the system.
- Installs dependencies packages for BZEdge daemons to run on the system
- Creates configuration file in current user's data dir
- Installs binaries fetched from latest BZE daemon release
- Installs sapling/sprout params
- Downloads and unzips bootstrap
- Creates a system service for BZE daemon.
- Enables firewall if user accepts
- Starts BZE daemon service and checks the sync status
- Checks MN's sync status and displays it on screen until MN is fully synced.
bash -c "$(wget -O - https://raw.githubusercontent.com/bze-alphateam/BZE-Scripts/master/bootstrap.sh)"
bash -c "$(wget -O - https://raw.githubusercontent.com/bze-alphateam/BZE-Scripts/master/setup-masternode.sh)"