gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-wallet-core] 01/02: backup WIP


From: gnunet
Subject: [taler-wallet-core] 01/02: backup WIP
Date: Tue, 12 Jan 2021 20:04:23 +0100

This is an automated email from the git hooks/post-receive script.

dold pushed a commit to branch master
in repository wallet-core.

commit 6772c5479394cbdf404857f75263749a5c91bd41
Author: Florian Dold <florian@dold.me>
AuthorDate: Tue Jan 12 17:17:34 2021 +0100

    backup WIP
---
 packages/taler-wallet-core/src/operations/backup.ts |  4 ++++
 packages/taler-wallet-core/src/types/dbTypes.ts     | 21 +++++++++++++++++----
 2 files changed, 21 insertions(+), 4 deletions(-)

diff --git a/packages/taler-wallet-core/src/operations/backup.ts 
b/packages/taler-wallet-core/src/operations/backup.ts
index 0c856b7b..a9f1fc43 100644
--- a/packages/taler-wallet-core/src/operations/backup.ts
+++ b/packages/taler-wallet-core/src/operations/backup.ts
@@ -1690,6 +1690,8 @@ export async function addBackupProvider(
     },
     paymentProposalIds: [],
     baseUrl: canonUrl,
+    lastError: undefined,
+    retryInfo: initRetryInfo(false),
   });
 }
 
@@ -1808,6 +1810,8 @@ async function backupRecoveryTheirs(
             active: true,
             baseUrl: prov.url,
             paymentProposalIds: [],
+            retryInfo: initRetryInfo(false),
+            lastError: undefined,
           });
         }
       }
diff --git a/packages/taler-wallet-core/src/types/dbTypes.ts 
b/packages/taler-wallet-core/src/types/dbTypes.ts
index 62ad01d2..f55dcb2f 100644
--- a/packages/taler-wallet-core/src/types/dbTypes.ts
+++ b/packages/taler-wallet-core/src/types/dbTypes.ts
@@ -36,9 +36,7 @@ import {
 
 import { Index, Store } from "../util/query";
 import { TalerErrorDetails, RefreshReason } from "./walletTypes";
-import {
-  ReserveTransaction,
-} from "./ReserveTransaction";
+import { ReserveTransaction } from "./ReserveTransaction";
 import { Timestamp, Duration } from "../util/time";
 import { IDBKeyPath } from "idb-bridge";
 import { RetryInfo } from "../util/retries";
@@ -1444,7 +1442,7 @@ export interface BackupProviderRecord {
   terms?: {
     supportedProtocolVersion: string;
     annualFee: AmountString;
-    storageLimitInMegabytes: number;  
+    storageLimitInMegabytes: number;
   };
 
   active: boolean;
@@ -1466,6 +1464,21 @@ export interface BackupProviderRecord {
   currentPaymentProposalId?: string;
 
   paymentProposalIds: string[];
+
+  /**
+   * Next scheduled backup.
+   */
+  nextBackupTimestamp?: Timestamp;
+
+  /**
+   * Retry info.
+   */
+  retryInfo: RetryInfo;
+
+  /**
+   * Last error that occured, if any.
+   */
+  lastError: TalerErrorDetails | undefined;
 }
 
 class ExchangesStore extends Store<"exchanges", ExchangeRecord> {

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]