Merge pull request #652 from pinheadmz/patch-8

spvnode: parse --no-wallet flag
This commit is contained in:
Javed Khan 2019-01-04 20:34:03 +05:30 committed by GitHub
commit aaec50fc4c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -24,7 +24,7 @@ const node = new SPVNode({
});
// Temporary hack
if (!node.has('walletdb')) {
if (!node.config.bool('no-wallet') && !node.has('walletdb')) {
const plugin = require('../lib/wallet/plugin');
node.use(plugin);
}