capsule-corp-ternoa / ternoa-enclaves

TEE enclaves that are highly secure with P2P real-time sync
4 stars 3 forks source link

RPC Reconnect feature #15

Closed zorvan closed 11 months ago

zorvan commented 11 months ago

Detect WebSocket RPC connections from Enclave to public nodes and Reconnect if there is any error .

It should be normally handled by Subxt or JsonRpsee but the problem is how to update/maintain all the subscriptions on that connection as well.

https://github.com/paritytech/subxt/issues/1190 https://github.com/paritytech/subxt/issues/551 https://github.com/paritytech/jsonrpsee/issues/949 https://github.com/paritytech/jsonrpsee/issues/236 https://github.com/paritytech/jsonrpsee/issues/678

We solved it regarding to limited number of points where enclave requests to the chain.