aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--packages/taler-util/src/talerconfig.ts2
-rw-r--r--packages/taler-wallet-cli/src/lint.ts10
2 files changed, 8 insertions, 4 deletions
diff --git a/packages/taler-util/src/talerconfig.ts b/packages/taler-util/src/talerconfig.ts
index 32213f834..8652a8b01 100644
--- a/packages/taler-util/src/talerconfig.ts
+++ b/packages/taler-util/src/talerconfig.ts
@@ -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`,
);
diff --git a/packages/taler-wallet-cli/src/lint.ts b/packages/taler-wallet-cli/src/lint.ts
index 68d383b1d..a599f130f 100644
--- a/packages/taler-wallet-cli/src/lint.ts
+++ b/packages/taler-wallet-cli/src/lint.ts
@@ -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");
+ }
}
}