bin: add wallet node.

This commit is contained in:
Christopher Jeffrey 2017-03-12 16:41:24 -07:00
parent 806d8c824a
commit 4b212aff8e
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

21
bin/wallet Executable file
View File

@ -0,0 +1,21 @@
#!/usr/bin/env node
'use strict';
process.title = 'bcoin-wallet';
var server = require('../lib/wallet/server');
var wdb = server.create({
config: true,
argv: true,
env: true
});
wdb.on('error', function(err) {
;
});
wdb.open().catch(function(err) {
throw err;
});