pub async fn relay_chapel_headers(config: PangoroChapelConfig) -> Result<()>
Expand description

Relay headers to pangoro

  1. get finalized checkpoint
  2. calculate next bsc header number range which is required by relay interface
  3. get current bsc block number.
  4. If the current block number is bigger than last required block number, relay the headers. If not, sleep a few seconds, and jump to 3.