Return if !isParseBlockChainComplete

Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
This commit is contained in:
HenrikJannsen 2023-01-05 12:20:09 -05:00 committed by Alejandro García
parent 4b25adf32d
commit a6762cb66a
No known key found for this signature in database
GPG Key ID: F806F422E222AA02

View File

@ -109,14 +109,16 @@ public class DaoPresentation implements DaoStateListener, DaoStateMonitoringServ
@Override @Override
public void onDaoStateHashesChanged() { public void onDaoStateHashesChanged() {
if (daoStateService.isParseBlockChainComplete()) { if (!daoStateService.isParseBlockChainComplete()) {
if (daoStateMonitoringService.isInConflictWithSeedNode() || return;
daoStateMonitoringService.isDaoStateBlockChainNotConnecting()) { }
new Popup().warning(Res.get("popup.warning.daoNeedsResync"))
.actionButtonTextWithGoTo("navigation.dao.networkMonitor") if (daoStateMonitoringService.isInConflictWithSeedNode() ||
.onAction(() -> navigation.navigateTo(MainView.class, DaoView.class, MonitorView.class, DaoStateMonitorView.class)) daoStateMonitoringService.isDaoStateBlockChainNotConnecting()) {
.show(); new Popup().warning(Res.get("popup.warning.daoNeedsResync"))
} .actionButtonTextWithGoTo("navigation.dao.networkMonitor")
.onAction(() -> navigation.navigateTo(MainView.class, DaoView.class, MonitorView.class, DaoStateMonitorView.class))
.show();
} }
} }