From 7734c427ca555ecfc2bf332f4750ad8ba51811c1 Mon Sep 17 00:00:00 2001 From: Matias Alejo Garcia Date: Tue, 24 Feb 2015 14:43:46 -0300 Subject: [PATCH] . --- .gitignore | 2 +- bit-wallet/cli-utils.js | 2 +- db/.empty | 0 lib/storage.js | 2 +- 4 files changed, 3 insertions(+), 3 deletions(-) create mode 100644 db/.empty diff --git a/.gitignore b/.gitignore index 9bf8925..2489e44 100644 --- a/.gitignore +++ b/.gitignore @@ -30,6 +30,6 @@ node_modules *.swp out/ -db/ +db/* .bit diff --git a/bit-wallet/cli-utils.js b/bit-wallet/cli-utils.js index 6bbbfff..429423b 100644 --- a/bit-wallet/cli-utils.js +++ b/bit-wallet/cli-utils.js @@ -109,7 +109,7 @@ Utils.parseAmount = function(text) { Utils.configureCommander = function(program) { program .version('0.0.1') - .option('-f, --file [filename]', 'Wallet file', 'bit.dat') + .option('-f, --file [filename]', 'Wallet file', process.env['HOME'] + '/.bit.dat') .option('-h, --host [host]', 'Bitcore Wallet Service URL (eg: http://localhost:3001/copay/api') .option('-v, --verbose', 'be verbose') diff --git a/db/.empty b/db/.empty new file mode 100644 index 0000000..e69de29 diff --git a/lib/storage.js b/lib/storage.js index 7319ad9..81e54ea 100644 --- a/lib/storage.js +++ b/lib/storage.js @@ -16,7 +16,7 @@ var Notification = require('./model/notification'); var Storage = function(opts) { opts = opts || {}; - this.db = opts.db || levelup(opts.dbPath || './db/copay.db', { + this.db = opts.db || levelup(opts.dbPath || './db/bws.db', { valueEncoding: 'json' }); };