This commit is contained in:
Florian Dold 2021-08-04 18:08:24 +02:00
parent acaa2282b6
commit 4293b91abc
No known key found for this signature in database
GPG Key ID: D2E4F00F29D02A4B

View File

@ -125,11 +125,12 @@ function checkBasicConf(cfg: Configuration): BasicConf {
}
function checkCoinConfig(cfg: Configuration, basic: BasicConf): void {
const coinPrefix = "COIN_";
const coinPrefix1 = "COIN_";
const coinPrefix2 = "COIN-";
let numCoins = 0;
for (const secName of cfg.getSectionNames()) {
if (!secName.startsWith(coinPrefix)) {
if (!secName.startsWith(coinPrefix1) && !secName.startsWith(coinPrefix2)) {
continue;
}
numCoins++;
@ -185,11 +186,6 @@ function checkCloserConfig(cfg: Configuration) {
function checkMasterPublicKeyConfig(cfg: Configuration): PubkeyConf {
const pub = cfg.getString("exchange", "master_public_key");
if (!pub.isDefined) {
console.log("error: Master public key is not set.");
process.exit(1);
}
const pubDecoded = decodeCrock(pub.required());
if (pubDecoded.length != 32) {