Always use AppSetupWithP2PAndDAO independent of isDaoFullNode

This commit is contained in:
Manfred Karrer 2019-04-16 17:59:06 -05:00
parent ba4a3a8918
commit a677a5b1a2
No known key found for this signature in database
GPG Key ID: 401250966A6B2C46

View File

@ -18,9 +18,7 @@
package bisq.seednode;
import bisq.core.app.misc.AppSetup;
import bisq.core.app.misc.AppSetupWithP2P;
import bisq.core.app.misc.AppSetupWithP2PAndDAO;
import bisq.core.user.Preferences;
import com.google.inject.Injector;
@ -37,8 +35,7 @@ public class SeedNode {
}
public void startApplication() {
boolean isDaoFullNode = injector.getInstance(Preferences.class).isDaoFullNode();
appSetup = isDaoFullNode ? injector.getInstance(AppSetupWithP2PAndDAO.class) : injector.getInstance(AppSetupWithP2P.class);
appSetup = injector.getInstance(AppSetupWithP2PAndDAO.class);
appSetup.start();
}
}