This commit is contained in:
Florian Dold 2021-08-04 18:05:41 +02:00
parent 17f2132b4a
commit acaa2282b6
No known key found for this signature in database
GPG Key ID: D2E4F00F29D02A4B
2 changed files with 8 additions and 4 deletions

View File

@ -103,7 +103,7 @@ export class ConfigValue<T> {
) {}
required(): T {
if (!this.value) {
if (this.value == undefined) {
throw new ConfigError(
`required option [${this.sectionName}]/${this.optionName} not found`,
);

View File

@ -125,7 +125,7 @@ function checkBasicConf(cfg: Configuration): BasicConf {
}
function checkCoinConfig(cfg: Configuration, basic: BasicConf): void {
const coinPrefix = "coin_";
const coinPrefix = "COIN_";
let numCoins = 0;
for (const secName of cfg.getSectionNames()) {
@ -143,8 +143,8 @@ function checkCoinConfig(cfg: Configuration, basic: BasicConf): void {
}
function checkWireConfig(cfg: Configuration): void {
const accountPrefix = "exchange-account-";
const accountCredentialsPrefix = "exchange-accountcredentials-";
const accountPrefix = "EXCHANGE-ACCOUNT-";
const accountCredentialsPrefix = "EXCHANGE-ACCOUNTCREDENTIALS-";
let accounts = new Set<string>();
let credentials = new Set<string>();
@ -267,6 +267,10 @@ export async function checkExchangeHttpd(
resp,
codecForExchangeKeysJson(),
);
if (keys.master_public_key !== pubConf.masterPublicKey) {
console.log("error: master public key of exchange does not match public key of live exchange");
}
}
}