Browse Source

app settings schema

all-modes
pbca26 7 years ago
parent
commit
67d1aa4e4f
  1. 1
      main.js
  2. 121
      routes/shepherd.js

1
main.js

@ -337,6 +337,7 @@ function createWindow(status) {
if (appConfig.v2) {
shepherd.writeLog('show edex gui');
mainWindow.appConfig = appConfig;
mainWindow.appConfigSchema = shepherd.appConfigSchema;
mainWindow.appBasicInfo = appBasicInfo;
mainWindow.appSessionHash = appSessionHash;
mainWindow.assetChainPorts = require('./routes/ports.js');

121
routes/shepherd.js

@ -96,7 +96,7 @@ shepherd.appConfig = {
iguanaCorePort: 7778,
maxDescriptors: {
darwin: 90000,
linux: 1000000
linux: 1000000,
},
killIguanaOnStart: true,
dev: false,
@ -105,12 +105,129 @@ shepherd.appConfig = {
debug: false,
cli: {
passthru: true,
default: true
default: true,
},
iguanaLessMode: true,
roundValues: false,
};
shepherd.appConfigSchema = {
edexGuiOnly: {
display: false,
type: 'boolean',
displayName: 'EDEX GUI only',
},
iguanaGuiOnly: {
display: false,
type: 'boolean',
displayName: 'Iguana GUI only',
},
manualIguanaStart: {
display: false,
type: 'boolean',
displayName: 'Manual Iguana Start',
},
skipBasiliskNetworkCheck: {
display: false,
type: 'boolean',
displayName: 'Skip Basilisk Network Check',
},
minNotaries: {
display: false,
type: 'number',
displayName: 'Minimum notaries count',
info: 'Minimum number of notaries to connect to on startup',
},
host: {
display: true,
type: 'string',
displayName: 'Hostname',
info: 'Application hostname',
},
agamaPort: {
display: true,
type: 'number',
displayName: 'Agama Port',
info: 'Agama HTTP port. Required to run GUI.',
},
iguanaCorePort: {
display: true,
type: 'number',
displayName: 'Iguana Core Port',
info: 'Default Iguana Core Port. Change it if you have conflicts with other applications.',
},
maxDescriptors: {
display: false,
displayName: 'Max Descriptors per Process',
darwin: {
display: true,
displayName: 'MacOS (Darwin)',
type: 'number',
},
linux: {
display: true,
displayName: 'Linux',
type: 'number',
},
},
killIguanaOnStart: {
display: true,
displayName: 'Kill Iguana Core Processes on Startup',
info: 'Kill any rogue Iguana Core processes during app startup',
type: 'boolean',
},
dev: {
display: true,
displayName: 'Developer mode',
info: 'Enable developer mode.',
type: 'boolean',
},
v2: {
display: false,
type: 'boolean',
},
useBasiliskInstance: {
display: true,
displayName: 'Iguana Core Basilisk Instance',
info: 'Enable dedicated Iguana Core instance to handle all Basilisk network requests',
type: 'boolean',
},
debug: {
display: true,
displayName: 'Debug',
info: 'Enable debug output',
type: 'boolean',
},
cli: {
display: true,
displayName: 'Direct BitcoinRPC passthru interface',
info: 'Enable direct BitcoinRPC passthru interface. It will bypass Iguana Core and send requests directly to Bitcoin JSON server.',
passthru: {
display: true,
displayName: 'Enable Direct Passthru',
type: 'boolean',
},
default: {
display: true,
displayName: 'Enable CLI passthru',
info: 'Enable komodo-cli passthru. This allows you to send CLI compatible commands directly from UI to komodo-cli.',
type: 'boolean',
},
},
iguanaLessMode: {
display: true,
displayName: 'Enable Native Only mode',
info: 'Limited to only Komodo native mode to speed up loading and reduce hardware resources consumption.',
type: 'boolean',
},
roundValues: {
display: true,
displayName: 'Enable amount rounding',
info: 'Round \"dust\" amounts to save screen space.',
type: 'boolean',
},
};
shepherd.defaultAppConfig = Object.assign({}, shepherd.appConfig);
shepherd.coindInstanceRegistry = coindInstanceRegistry;

Loading…
Cancel
Save