Added extra check for topOnly mode.

This commit is contained in:
CalDescent 2023-05-20 11:33:43 +01:00
parent 2cc5b90306
commit a8d92805f9

View File

@ -508,6 +508,9 @@ public class Settings {
if (this.minBlockchainPeers < 1 && !singleNodeTestnet)
throwValidationError("minBlockchainPeers must be at least 1");
if (this.topOnly)
throwValidationError("topOnly mode is no longer supported");
if (this.apiKey != null && this.apiKey.trim().length() < 8)
throwValidationError("apiKey must be at least 8 characters");