Skip to content

Latest commit

 

History

History
46 lines (30 loc) · 1.12 KB

File metadata and controls

46 lines (30 loc) · 1.12 KB

Beacon

A simple centralized beacon relayer. It listens to randomness output from the Ideal Network and encodes pulses within a Substrate pallet (pallet-randomness-beacon);

Run

Docker

To run the beacon from docker

docker pull ideallabs/relayer
docker run --network host ideallabs/relayer [node_websocket_URI]

For example, to connect to a locally running node whose RPC is exposed on 9944:

docker run --network host ideallabs/relayer ws://127.0.0.1:9944

Build from Sources

To build thje

  1. (optional) install subxt
cargo install subxt-cli
  1. (Optional) Generate metadata The following is required only if you need to generate metadata (e.g. the runtime has changed) 0a. Run a local Ideal node 0b. Once it is running and producing ETF blocks, generate metadata by running ./generate_metadata.sh from the root directory.

  2. Run:

cargo run [node_websocket_uri]

This will start the beacon relayer. If it successfully connects to the network, it will listen for justifications, interpolate them, and send the result as a signature to the beacon pallet.

Testing

TODO