The home for Hyperlane core contracts, sdk packages, and other infrastructure
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
hyperlane-monorepo/rust/agents/relayer/src/main.rs

25 lines
586 B

//! The relayer forwards signed checkpoints from the current chain's mailbox to
//! the other chains' mailboxes
//!
//! At a regular interval, the relayer polls the current chain's mailbox for
//! signed checkpoints and submits them as checkpoints on the remote mailbox.
#![forbid(unsafe_code)]
#![warn(missing_docs)]
use eyre::Result;
use hyperlane_base::agent_main;
use crate::relayer::Relayer;
mod merkle_tree_builder;
mod msg;
mod prover;
mod relayer;
mod settings;
#[tokio::main(flavor = "current_thread")]
async fn main() -> Result<()> {
agent_main::<Relayer>().await
}