Installing the timelord on Debian / Ubuntu
1. To run a timelord, you need a fully synchronized BPX Chain full node. If you don'don’t have it already,one, follow all the steps of this tutorial first.
2. The timelord software is not included in the official binary .deb /or .rpm releases. You haveneed to build it from the source code. LoginLog in as root and install the gitGit client first.
apt-get install git
3. The timelord installer script requires root access to install somecertain dependencies from APT repositories. Add the BPX Chain services user to the sudoers bywith the following command:
usermod -a -G sudo bpxv3bpxchain
4. Now it's timeSwitch to switch tothe BPX Chain services user:user account:
su - bpxv3bpxchain
4. FetchClone the source code of the latestBPX Beacon Client release:git repository:
git clone https://github.com/bpx-network/bpx-beacon-client
5. Install the Beacon Client from the source. This process may take several minutes.
cd bpx-beacon-client
. install.sh
6. Install the timelord software:module:
. install-timelord.sh
7. Press Control + D to log out and return to the root console.
8. Create a configuration file for the timelord servicesystemd descriptor file:service:
nano /etc/systemd/system/bpx-timelord.service
Insert the following file content:
[Unit]
Description=BPX Timelord
[Service]
Type=forking
User=bpxv3bpxchain
WorkingDirectory=/home/bpxv3/bpxchain/bpx-beacon-client
ExecStart=bash -c ". activate && bpx start timelord-launcher-only timelord-only"
ExecStop=bash -c ". activate && bpx stop timelord-only timelord-launcher-only"
Restart=always
[Install]
WantedBy=multi-user.target
Save9. Reload the file by pressing Control + O and close the editor with Control + X.
9. Refresh startupsystem services configurationconfiguration.
systemctl daemon-reload
10. ActivateEnable automatic startup of timelordthe servicenew service.
systemctl enable bpx-timelord
Regular timelordTimelord
If you want to run a regular timelord used by BPX consensus algorithm for generating new blocks, justsimply start the timelord with the default configuration:
systemctl start bpx-timelord
Bluebox timelordTimelord
To run the bluebox timelordtimelord, which compresses old blocks in the chain, you need to edit the configuration file:
nano /home/bpxv3/bpxchain/.bpx/bpxchain/beacon/config/config.yaml
- In the timelord section, set
bluebox_mode
toTrue
- In the beacon section, set
send_uncompact_interval
to recommended value of300
Save the file and exit. Then start the timelord:timelord service:
systemctl start bpx-timelord