-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Adds an opt out option to the node auto updater #1450
Conversation
@frozeman, thanks for your PR! By analyzing the history of the files in this pull request, we identified @alexvandesande, @luclu and @hiddentao to be potential reviewers. |
I created a PR for md5 checksums: ethereum/ethereum-client-binaries#6 |
Notes / TODO (ongoing):
|
65a2eae
to
07296ca
Compare
Still testing. some findings: ✅ From a clean install I managed to upgrade geth from 1.4.17 > 1.4.18 > 1.5.2 successfully. ❌ If it's the first run (any nodes downloaded), the user will be prompted to "update". In case the user closes/skips the window, it cannot move forward, as they don't have any node. The user will only be able to start mist properly if it deletes |
Was about to make a PR to this PR but ended up committing the most important change (a9745a0) here. Anyway, now both "update available window" have the same basic structure, removed some redundant code and language and standardized it to the look and feel of our windows and buttons: |
@evertonfraga for the first time thats an issue, true. will fix. (Tho, i thought this shouldn't happen, as the of line: https://github.com/ethereum/mist/blob/nodeDownloaderFix/modules/clientBinaryManager.js#L88) But if you skipped update, you can click the main menu and click "check for node updates". This will erase the skippedVersion file and check for updates again. @alexvandesande looks good. Please add a third button, skip for now. Or do we want to do this behaviour only if the user closed the update window? |
@alexvandesande I feel like the URL would look better if not wrapped |
Well, I've ironed up my test environment and probably I've messed with some json file on the first tests — sorry for the false negative. Today i did an intensive batch of checks and everything worked properly.
I've been struggling to test on windows, though. For an undetected reason, I can't parse any json from remote server anymore. So |
@luclu I increased the width 30px so it won't break like that 😜 |
This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread. |
This adds an opt out option where it saves the skipped node version in a
skippedNodeVersion.json
file. As long as the current to be updated node version matches the entry in the file it wont ask for update, otherwise popup the question window, which shows details about the update node.TODO: we need to add md5 hash verification to ethereum client binaries updater, which sits now at:
https://github.com/ethereum/ethereum-client-binaries
Please all make sure to test this extensively.
clientBinaries.json
from the mist data folder.clientBinaries.json
a bit (change on version number etc.) to trigger a update requestskippedNodeVersion.json
in the mist data folderetc..
You can use
http-server
npm package to start a server inside any folder. Start one in the mist folder so you can serve theclientBinaries.json
by yourself and make changes to it to test.You just need to then change the line 58, of the
modules/clientBinaryManager.js
, for testing