gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-wallet-core] branch master updated: linting


From: gnunet
Subject: [taler-wallet-core] branch master updated: linting
Date: Wed, 04 Aug 2021 18:05:46 +0200

This is an automated email from the git hooks/post-receive script.

dold pushed a commit to branch master
in repository wallet-core.

The following commit(s) were added to refs/heads/master by this push:
     new acaa2282 linting
acaa2282 is described below

commit acaa2282b60d9911532570ee261f541b11cb3a58
Author: Florian Dold <florian@dold.me>
AuthorDate: Wed Aug 4 18:05:41 2021 +0200

    linting
---
 packages/taler-util/src/talerconfig.ts |  2 +-
 packages/taler-wallet-cli/src/lint.ts  | 10 +++++++---
 2 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/packages/taler-util/src/talerconfig.ts 
b/packages/taler-util/src/talerconfig.ts
index 32213f83..8652a8b0 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 68d383b1..a599f130 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");
+    }
   }
 }
 

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]