-
Notifications
You must be signed in to change notification settings - Fork 5.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: fall back to bundled chainlist #23392
Conversation
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
cebf9f3
to
68fb696
Compare
a8d5e7a
to
c5e6d96
Compare
c6803f7
to
a80c5de
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #23392 +/- ##
===========================================
- Coverage 66.00% 65.99% -0.00%
===========================================
Files 1348 1348
Lines 52503 52512 +9
Branches 13494 13492 -2
===========================================
+ Hits 34651 34655 +4
- Misses 17852 17857 +5 ☔ View full report in Codecov by Sentry. |
f55d571
to
3c0ca43
Compare
things to consider here:
possible alternatives:
@Gudahtt any ideas who's owning this bit and could have opinions? |
dd35f12
to
0233e33
Compare
0233e33
to
6e421c2
Compare
42a293c
to
84bfb7d
Compare
d1b8315
to
900e425
Compare
900e425
to
ba4b41e
Compare
…when requests fail
ba4b41e
to
c20eac8
Compare
Description
The list of known chains is fetched at runtime from
https://chainid.network/chains.json
and cached. There are some issues with the way this works:This PR addresses this by:
https://chainid.network/chains.json
into constantCHAIN_SPEC_URL
allowStale
tofetchWithCache
. If set totrue
, it will falling back to return any entry instead of throwing an error when a request fail.allowStale
totrue
for all requests toCHAIN_SPEC_URL
CHAIN_SPEC_URL
witheth-chainlist
, which is the same data exposed via a published npm package.While an improvement, this could still be further improved.
I currently consider these out-of-scope for this PR.
Or put more generally: Decoupling the fetching of the data from its use would be even better.

Related issues
Fixes:
Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist