From dc596f1f4d494c3bf9e57253d773205dc0479179 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Wed, 12 Jan 2022 15:51:56 +0100 Subject: implement latest recoup protocol --- packages/taler-wallet-core/src/db.ts | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'packages/taler-wallet-core/src/db.ts') diff --git a/packages/taler-wallet-core/src/db.ts b/packages/taler-wallet-core/src/db.ts index 772061fb9..7f6b08e12 100644 --- a/packages/taler-wallet-core/src/db.ts +++ b/packages/taler-wallet-core/src/db.ts @@ -42,7 +42,6 @@ import { import { RetryInfo } from "./util/retries.js"; import { PayCoinSelection } from "./util/coinSelection.js"; import { Event, IDBDatabase } from "@gnu-taler/idb-bridge"; -import { PendingTaskInfo } from "./pending-types.js"; /** * Name of the Taler database. This is effectively the major @@ -140,7 +139,7 @@ export interface ReserveRecord { reservePriv: string; /** - * The exchange base URL. + * The exchange base URL for the reserve. */ exchangeBaseUrl: string; @@ -154,8 +153,6 @@ export interface ReserveRecord { */ timestampCreated: Timestamp; - operationStatus: OperationStatus; - /** * Time when the information about this reserve was posted to the bank. * @@ -206,13 +203,17 @@ export interface ReserveRecord { */ initialDenomSel: DenomSelectionState; + /** + * Current status of the reserve. + */ reserveStatus: ReserveRecordStatus; /** - * Was a reserve query requested? If so, query again instead - * of going into dormant status. + * Is there any work to be done for this reserve? + * + * FIXME: Technically redundant, since the reserveStatus would indicate this. */ - requestedQuery: boolean; + operationStatus: OperationStatus; /** * Time of the last successful status query. -- cgit v1.2.3