This commit is contained in:
Florian Dold 2021-08-04 18:14:37 +02:00
parent 4293b91abc
commit 20611fe6e0
No known key found for this signature in database
GPG Key ID: D2E4F00F29D02A4B
2 changed files with 10 additions and 7 deletions

View File

@ -897,13 +897,13 @@ deploymentCli
out += "\n";
while (Amounts.cmp(x, max) < 0) {
out += `[COIN_${currency}_${n}]\n`;
out += `[COIN-${currency}_${n}]\n`;
out += `VALUE = ${Amounts.stringify(x)}\n`;
out += `DURATION_WITHDRAW = 7 days\n`;
out += `DURATION_SPEND = 2 years\n`;
out += `DURATION_LEGAL = 6 years\n`;
out += `FEE_WITHDRAW = ${currency}:0\n`;
out += `FEE_DEPOSIT = ${currency}:0\n`;
out += `FEE_DEPOSIT = ${Amounts.stringify(min)}\n`;
out += `FEE_REFRESH = ${currency}:0\n`;
out += `FEE_REFUND = ${currency}:0\n`;
out += `RSA_KEYSIZE = 2048\n`;

View File

@ -138,9 +138,11 @@ function checkCoinConfig(cfg: Configuration, basic: BasicConf): void {
// FIXME: check that section is well-formed
}
console.log(
"error: no coin denomination configured, please configure [coin_*] sections",
);
if (numCoins == 0) {
console.log(
"error: no coin denomination configured, please configure [coin-*] sections",
);
}
}
function checkWireConfig(cfg: Configuration): void {
@ -231,7 +233,6 @@ export async function checkExchangeHttpd(
console.log(
"warning: section EXCHANGE option BASE_URL: it is recommended to serve the exchange via HTTPS",
);
process.exit(1);
}
{
@ -265,7 +266,9 @@ export async function checkExchangeHttpd(
);
if (keys.master_public_key !== pubConf.masterPublicKey) {
console.log("error: master public key of exchange does not match public key of live exchange");
console.log(
"error: master public key of exchange does not match public key of live exchange",
);
}
}
}