-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
feat: add migration 082 to reset PhishingController phishingLists #14573
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
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. |
|
|
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
@mindofmar Does this need to be cherry-picked into 7.45.0? If so, can you add |
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
@mindofmar Is there a dependency here to require a Do Not Merge label? |
Co-authored-by: mar <72634565+mindofmar@users.noreply.github.com>
…to migration/clean-phishing-lists-state
|
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.
This looks great! I'm looking forward to seeing how this change will impact our app Performance 🎉
Description
This PR adds migration 082 to reset the
phishingLists
array in the PhishingController while preserving all other controller state.Reason for change: We have introduced real-time dapp scanning to replace the traditional eth phishing detection functionality. As a result, the large local phishing lists are no longer needed, which have been contributing to memory issues on low-end devices and increased app startup time.
Improvement/solution: This targeted migration removes the outdated phishing lists data by resetting only the
phishingLists
array to empty, while preserving all other user preferences and controller state. This approach:Related issues
Fixes: [Issue number/link]
Manual testing steps
Screenshots/Recordings
Before
N/A - Performance improvement in background process
After
N/A - Performance improvement in background process
Pre-merge author checklist
Pre-merge reviewer checklist