From 61e3484d6ce1db846c435d84cbf5b9c3711a30f2 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Mon, 29 Jan 2024 21:29:26 +0100 Subject: wallet-core,harness: let runIntegrationTest wait for its own transactions --- packages/taler-wallet-core/src/db.ts | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 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 a0613fd39..b0605cb1d 100644 --- a/packages/taler-wallet-core/src/db.ts +++ b/packages/taler-wallet-core/src/db.ts @@ -151,7 +151,7 @@ export const CURRENT_DB_CONFIG_KEY = "currentMainDbName"; * backwards-compatible way or object stores and indices * are added. */ -export const WALLET_DB_MINOR_VERSION = 4; +export const WALLET_DB_MINOR_VERSION = 5; declare const symDbProtocolTimestamp: unique symbol; @@ -996,14 +996,6 @@ export enum DepositElementStatus { RefundFailed = 0x0501_0000, } -/** - * Additional information about the reason of a refresh. - */ -export interface RefreshReasonDetails { - originatingTransactionId?: string; - proposalId?: string; -} - export interface RefreshGroupPerExchangeInfo { /** * (Expected) output once the refresh group succeeded. @@ -1035,10 +1027,7 @@ export interface RefreshGroupRecord { */ reason: RefreshReason; - /** - * Extra information depending on the reason. - */ - reasonDetails?: RefreshReasonDetails; + originatingTransactionId?: string; oldCoinPubs: string[]; @@ -2461,6 +2450,13 @@ export const WalletStoresV1 = { }), { byStatus: describeIndex("byStatus", "operationStatus"), + byOriginatingTransactionId: describeIndex( + "byOriginatingTransactionId", + "originatingTransactionId", + { + versionAdded: 5, + }, + ), }, ), refreshSessions: describeStore( -- cgit v1.2.3