Function bridge_pangoro_chapel::service::header_relay::relay_chapel_headers
source · [−]pub async fn relay_chapel_headers(config: PangoroChapelConfig) -> Result<()>
Expand description
Relay headers to pangoro
- get finalized checkpoint
- calculate next bsc header number range which is required by relay interface
- get current bsc block number.
- 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.