bifrost-relayer.py (Legacy)
What is bifrost-relayer.py?
bifrost-relayer.py
is the Python implementation of the Bifrost network's relayer and represents the initial implementation of the CCCP-Relayer. Recently, we have introduced a Rust implementation of the CCCP-Relayer. However, this doesn't imply the end of the legacy relayer, which will continue to be maintained and supported.
Install Requirements
First, you need to get the code to prepare for the relayer execution.
The common configurations for the bifrost-relayer
is provided through the configs/entity.relayer.json
file, but the individual settings for each relayer must be set through the configs/entity.relayer.private.json
file. (For testnet relayers, use the configs-testnet
directory)
Using Systemd
Python version 3.10 is required to run the relayer as a system daemon.
The required Python packages must be priorly installed. It is recommended to use a virtual environment, and this manual assumes the use of a virtual environment.
Next, you need to create a Systemd configuration file. Create the file in the following directory.
<DIRECTORY_WHERE_BIFROST_RELAYER_LOCATES>
: The absolute path to the directory where the installedbifrost-relayer
locates.<PATH_TO_BIFROST_RELAYER>
: The absolute path to the installedbifrost-relayer
.
Now, with the two lines of the command below, the relayer will be executed in the background.
To check your running bifrost-relayer
service logs, execute the command below.
Using Docker
Move to the project root path and build the Docker image.
Run the built image.
To check your running bifrost-relayer
container logs, execute the command below.
Last updated