Merge pull request #3127 from devinbileck/activate-dao-preferences

Fix incorrect DAO full node check when loading PreferencesView
This commit is contained in:
Christoph Atteneder 2019-08-22 19:35:25 +02:00 committed by GitHub
commit b43a006832
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -834,8 +834,8 @@ public class PreferencesView extends ActivatableViewAndModel<GridPane, Preferenc
String rpcPw = preferences.getRpcPw();
int blockNotifyPort = preferences.getBlockNotifyPort();
if (daoFullNode && (rpcUser == null || rpcUser.isEmpty() ||
rpcPw == null || rpcPw.isEmpty()) ||
blockNotifyPort <= 0) {
rpcPw == null || rpcPw.isEmpty() ||
blockNotifyPort <= 0)) {
log.warn("You have full DAO node selected but have not provided the rpc username, password and " +
"block notify port. We reset daoFullNode to false");
isDaoFullNodeToggleButton.setSelected(false);