fix trust check
This commit is contained in:
parent
851ac5602c
commit
1fb1827002
@ -58,11 +58,7 @@ import {
|
|||||||
updateRetryInfoTimeout,
|
updateRetryInfoTimeout,
|
||||||
} from "../util/retries.js";
|
} from "../util/retries.js";
|
||||||
import { guardOperationException, OperationFailedError } from "./errors.js";
|
import { guardOperationException, OperationFailedError } from "./errors.js";
|
||||||
import {
|
import { updateExchangeFromUrl, getExchangePaytoUri } from "./exchanges.js";
|
||||||
updateExchangeFromUrl,
|
|
||||||
getExchangeTrust,
|
|
||||||
getExchangePaytoUri,
|
|
||||||
} from "./exchanges.js";
|
|
||||||
import { InternalWalletState } from "./state.js";
|
import { InternalWalletState } from "./state.js";
|
||||||
import {
|
import {
|
||||||
updateWithdrawalDenoms,
|
updateWithdrawalDenoms,
|
||||||
@ -72,6 +68,7 @@ import {
|
|||||||
processWithdrawGroup,
|
processWithdrawGroup,
|
||||||
getBankWithdrawalInfo,
|
getBankWithdrawalInfo,
|
||||||
} from "./withdraw.js";
|
} from "./withdraw.js";
|
||||||
|
import { getExchangeTrust } from "./currencies.js";
|
||||||
|
|
||||||
const logger = new Logger("reserves.ts");
|
const logger = new Logger("reserves.ts");
|
||||||
|
|
||||||
@ -184,7 +181,7 @@ export async function createReserve(
|
|||||||
talerWithdrawUri: reserveRecord.bankInfo.statusUrl,
|
talerWithdrawUri: reserveRecord.bankInfo.statusUrl,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
if (!isAudited && !isAudited) {
|
if (!isAudited && !isTrusted) {
|
||||||
await tx.put(Stores.exchangeTrustStore, {
|
await tx.put(Stores.exchangeTrustStore, {
|
||||||
currency: reserveRecord.currency,
|
currency: reserveRecord.currency,
|
||||||
exchangeBaseUrl: reserveRecord.exchangeBaseUrl,
|
exchangeBaseUrl: reserveRecord.exchangeBaseUrl,
|
||||||
|
Loading…
Reference in New Issue
Block a user