aboutsummaryrefslogtreecommitdiff
path: root/src/types.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2017-12-10 21:34:56 +0100
committerFlorian Dold <florian.dold@gmail.com>2017-12-10 21:34:56 +0100
commit6947e79bbc258f7bc96af424ddb71a511f0c15a3 (patch)
tree26e9d8206ccda54f3a7a5c7e23b322417ea5b85b /src/types.ts
parentb855c547fba01106a4a8c3699fd451bdfcadcf8d (diff)
downloadwallet-core-6947e79bbc258f7bc96af424ddb71a511f0c15a3.tar.xz
implement db garbage collection (fixes #4526, #4188)
Diffstat (limited to 'src/types.ts')
-rw-r--r--src/types.ts7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/types.ts b/src/types.ts
index 39f0a850d..ec4929c33 100644
--- a/src/types.ts
+++ b/src/types.ts
@@ -506,6 +506,13 @@ export interface ExchangeRecord {
lastUpdateTime: number;
/**
+ * When did we actually use this exchange last (in milliseconds). If we
+ * never used the exchange for anything but just updated its info, this is
+ * set to 0. (Currently only updated when reserves are created.)
+ */
+ lastUsedTime: number;
+
+ /**
* Last observed protocol version.
*/
protocolVersion?: string;