1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-22 18:00:18 +01:00
metamask-extension/app
Mark Stacey e7007ff3d5 Update eth-json-rpc-middleware to v9.0.1 (#16096)
This update includes fixes for our `block-ref` and `retry-on-empty`
middleware.

The `block-ref` middleware resolves the block reference `latest` to a
specific block number, the latest one we are aware of. This is meant to
protect against situations where the network gives inconsistent answers
for what the latest block number is due to some nodes being out-of-sync
with each other (this was a frequent problem years ago with Infura).

It was broken in that the `latest` resolution was failing, and we were
submitting an additional redundant request to Infura for each request.

The `retry-on-empty` middleware is meant to retry certain methods
when they return an empty response. This was also meant to deal with
network synchronization issues that were more common years ago. This
middleware works by making a "child" request over and over until either
a retry limit is reached, or a non-empty response is received.

It was broken in that the final response recieved was thrown away, so
it's as though the middleware was not used. Except that it did result
in additional redundant network requests.

As a result of this update we should see that the extension is more
resilient to certain network synchronization issues. But this is
difficult to test, and these issues may not happen in production
anymore today.

We should see a reduction in requests to Infura as well. This should
be easier to test.
2022-10-27 20:27:17 +02:00
..
_locales Fix typo in French translation for "removeAccount" (#16095) 2022-10-27 20:27:17 +02:00
build-types Dark Mode: Create Theme-friendly top left logo component (#13897) 2022-03-11 10:45:13 -06:00
fonts UI-14395: typography v2 (#15408) 2022-08-18 10:51:53 -07:00
images Adding Icon component and removing BaseIcon component (#15772) 2022-09-20 12:15:14 -05:00
manifest Revert "Fix permissions in MV3 manifest (#15980)" (#16021) 2022-09-30 20:00:59 +05:30
scripts Update eth-json-rpc-middleware to v9.0.1 (#16096) 2022-10-27 20:27:17 +02:00
vendor/trezor Update postMessage structure for TrezorConnect 8 (#10192) 2021-01-21 11:12:54 -06:00
background.html Add applyLavaMoat build flag (#14583) 2022-04-29 15:56:30 -07:00
home.html chore: Adjust trailing whitespace (#15636) 2022-08-24 14:11:49 -05:00
loading.html refactor & change html pages 2019-05-04 18:57:19 +02:00
notification.html revert indenting change 2022-06-08 14:24:49 -07:00
popup.html Remove junk from previous ticket 2022-06-08 14:24:49 -07:00
trezor-usb-permissions.html chore: Adjust trailing whitespace (#15636) 2022-08-24 14:11:49 -05:00