mirror of
https://github.com/everoddandeven/monerod-gui.git
synced 2025-01-03 09:29:36 +00:00
Fix mainnet daemon settings
This commit is contained in:
parent
1ed45915e5
commit
ab0c54c458
1 changed files with 4 additions and 2 deletions
|
@ -185,9 +185,11 @@ export class DaemonSettings {
|
|||
const options: string[] = [];
|
||||
if (this.monerodPath != '') options.push(this.monerodPath);
|
||||
|
||||
if (this.mainnet) options.push(`--mainnet`);
|
||||
else if (this.testnet) options.push(`--testnet`);
|
||||
if (this.testnet) options.push(`--testnet`);
|
||||
else if (this.stagenet) options.push(`--stagenet`);
|
||||
else if (!this.mainnet) {
|
||||
throw new Error("Invalid daemon settings");
|
||||
}
|
||||
|
||||
if (this.logFile != '') options.push('--log-file', this.logFile);
|
||||
if (this.logLevel >= 0 && this.logLevel <= 4) options.push('--log-level', `${this.logLevel}`);
|
||||
|
|
Loading…
Reference in a new issue