bifrost-relayer.py (Deprecated)
Last updated
Last updated
This guide refers to the legacy Python-based relayer (bifrost-relayer.py
), which is no longer maintained. It has been completely replaced by the new Rust-based relayer .
We strongly recommend all node operators and integrators to migrate to the Rust version for improved performance, security, and long-term support.
👉 See the for the latest instructions.
bifrost-relayer.py
is the of the Bifrost network's relayer and represents the initial implementation of the CCCP-Relayer. Recently, we have introduced a of the CCCP-Relayer. However, this doesn't imply the end of the legacy relayer, which will continue to be maintained and supported.
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)
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 installed bifrost-relayer
locates.
<PATH_TO_BIFROST_RELAYER>
: The absolute path to the installed bifrost-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.
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.