-
Notifications
You must be signed in to change notification settings - Fork 5k
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: block tracker stops polling when switching away from the network #29045
Conversation
Removed dependencies detected. Learn more about Socket for GitHub ↗︎ 🚮 Removed packages: npm/@metamask/network-controller@22.1.0 |
Builds ready [b7f5958]
Page Load Metrics (1889 ± 103 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
.yarn/patches/@metamask-network-controller-npm-22.1.1-09b6510f1e.patch
Outdated
Show resolved
Hide resolved
👍 Dependency issues cleared. Learn more about Socket for GitHub ↗︎ This PR previously contained dependency changes with security issues that have been resolved, removed, or ignored. |
This package version was published 8 years ago, and is not being changed in this PR |
Builds ready [45b2aa5]
Page Load Metrics (1957 ± 96 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have confirmed that requests no longer occur via the block tracker for a failing network when switching away.
Resolved conflicts |
Builds ready [c20642f]
Page Load Metrics (1628 ± 66 ms)
Bundle size diffs
|
4ad13db
to
d470307
Compare
Ah sorry, I pushed a commit to fix the lock file but then realized immediately after that the branch was outdated, so I removed it again. Sorry for that. The branch needs an update, but in addition to that, there's a bunch of changes in the lockfile that don't seem to be necessary. I'd recommend resetting the lockfile from |
Builds ready [521ab4e]
Page Load Metrics (1661 ± 43 ms)
Bundle size diffs
|
Builds ready [f1e746b]
Page Load Metrics (1840 ± 91 ms)
Bundle size diffs
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Description
This PR bumps
@metamask/network-controller
and@metamask/eth-json-rpc-middleware
by a patch version to fix an issue related to@metamask/eth-block-tracker
, used to listen to new blocks emitted by networks.Related issues
Fixes: #17040
Manual testing steps
This only applies to views that show a single chain: since now the wallet home shows all networks, requests will be fired regardless of the globally selected network. To test this, the chain filter in the home should be set to a specific chain, instead of all
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist