AvailX / avail-wallet

An open source, private, self-custodial wallet. Built on the Aleo network.
https://avail.global
Apache License 2.0
20 stars 7 forks source link

Adds API Client Switching as Obscura Parsing and `get_blocks` fails #111

Closed dev-blc closed 3 months ago

dev-blc commented 3 months ago

So Obscura's get_block fails to parse the response JSON to Block<N> and get_blocks returns a 500 error. When Obscura's block fetch fails, this PR implements a temp auto-switching to Aleo's API client.

When and if Obscura gets back to working, this will use Obscura as default, this switch only happens if Obscura fails or throws a JSON error.

dev-blc commented 3 months ago

TODO - @dev-blc REVIEW AND CHECK ONE LAST TIME