aboutsummaryrefslogtreecommitdiff
path: root/src/wallet.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2017-06-05 03:36:33 +0200
committerFlorian Dold <florian.dold@gmail.com>2017-06-05 03:36:33 +0200
commitd28333128568bf3967485763899d3afc8cad9bee (patch)
treead1d7f5fc748124a5e8288ee7660952228a8e818 /src/wallet.ts
parent290459133226503bcbc16f7dc3cb04d7abdc6735 (diff)
wallet db version belongs with wallet, not webex
Diffstat (limited to 'src/wallet.ts')
-rw-r--r--src/wallet.ts14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/wallet.ts b/src/wallet.ts
index a4e1d46f3..5de3906dc 100644
--- a/src/wallet.ts
+++ b/src/wallet.ts
@@ -329,8 +329,22 @@ export interface ConfigRecord {
}
+/**
+ * Wallet protocol version spoken with the exchange
+ * and merchant.
+ *
+ * Uses libtool's current:revision:age versioning.
+ */
export const WALLET_PROTOCOL_VERSION = "0:0:0";
+/**
+ * Current database version, should be incremented
+ * each time we do incompatible schema changes on the database.
+ * In the future we might consider adding migration functions for
+ * each version increment.
+ */
+export const WALLET_DB_VERSION = 18;
+
const builtinCurrencies: CurrencyRecord[] = [
{
auditors: [