Chia-Network / chia-blockchain-gui

Chia blockchain GUI in electron/react
https://chia.net
Apache License 2.0
332 stars 246 forks source link

GUI: Warn user if backend version is different #1032

Closed paninaro closed 1 year ago

paninaro commented 2 years ago

We can use the get_version daemon command to determine if the backend version is different from the GUI version. If there's a mismatch, we should warn that the GUI may not behave properly. Or we could just not support it and force the app to quit.

github-actions[bot] commented 2 years ago

'This issue has been flagged as stale as there has been no activity on it in 14 days. If this issue is still affecting you and in need of review, please update it to keep it open.'

paninaro commented 1 year ago

Let's see if we can add a check for dev mode: process.env.NODE_ENV === 'development' to suppress the alert if it would normally display.

paninaro commented 1 year ago

PR: https://github.com/Chia-Network/chia-blockchain-gui/pull/1205

paninaro commented 1 year ago

Image

paninaro commented 1 year ago

For any builds produced by CI, it's expected that installing/upgrading will keep the backend version and frontend version in lockstep. If installing from source, using our instructions to run install.sh and install-gui.sh should also keep the versions in sync. The GUI version comes from chia-blockchain-gui/packages/gui/package.json in the version field.