diff options
author | Florian Dold <florian@dold.me> | 2024-01-29 21:29:26 +0100 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2024-01-29 21:29:35 +0100 |
commit | 61e3484d6ce1db846c435d84cbf5b9c3711a30f2 (patch) | |
tree | 841e9889c5814c458622904203a46853aa0e2708 /packages/taler-wallet-core/src/db.ts | |
parent | 57d988cf4ceffb51e8936bd36eed4aefcdc2d2dc (diff) | |
download | wallet-core-61e3484d6ce1db846c435d84cbf5b9c3711a30f2.tar.xz |
wallet-core,harness: let runIntegrationTest wait for its own transactions
Diffstat (limited to 'packages/taler-wallet-core/src/db.ts')
-rw-r--r-- | packages/taler-wallet-core/src/db.ts | 22 |
1 files changed, 9 insertions, 13 deletions
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( |