fix trust check

This commit is contained in:
Florian Dold 2021-05-20 13:17:04 +02:00
parent 851ac5602c
commit 1fb1827002
No known key found for this signature in database
GPG Key ID: D2E4F00F29D02A4B

View File

@ -58,11 +58,7 @@ import {
updateRetryInfoTimeout,
} from "../util/retries.js";
import { guardOperationException, OperationFailedError } from "./errors.js";
import {
updateExchangeFromUrl,
getExchangeTrust,
getExchangePaytoUri,
} from "./exchanges.js";
import { updateExchangeFromUrl, getExchangePaytoUri } from "./exchanges.js";
import { InternalWalletState } from "./state.js";
import {
updateWithdrawalDenoms,
@ -72,6 +68,7 @@ import {
processWithdrawGroup,
getBankWithdrawalInfo,
} from "./withdraw.js";
import { getExchangeTrust } from "./currencies.js";
const logger = new Logger("reserves.ts");
@ -184,7 +181,7 @@ export async function createReserve(
talerWithdrawUri: reserveRecord.bankInfo.statusUrl,
});
}
if (!isAudited && !isAudited) {
if (!isAudited && !isTrusted) {
await tx.put(Stores.exchangeTrustStore, {
currency: reserveRecord.currency,
exchangeBaseUrl: reserveRecord.exchangeBaseUrl,