tangle-network / relayer

🕸️ The Webb Relayer Network
https://webb-tools.github.io/relayer/
Apache License 2.0
22 stars 13 forks source link

[TASK] Handle Network disconnection for Substrate #495

Closed shekohex closed 1 year ago

shekohex commented 1 year ago

Overview

Substrate Providers are using WebSocket connections, without a re-connection handling when the network connection drops for example. We need to consider fixing this before launch.

Proposed Solutions

  1. Do not use web sockets at all and just use http(s) endpoints (subxt supports http?)
  2. Use a custom jsonrpsee_ws_client::WsClientBuilder where we will need to implement a retry logic (see https://github.com/paritytech/jsonrpsee/issues/949)