spvnode: parse --no-wallet flag

To match behavior in `node` (fullnode) if a user wants to use `bmultisig` instead of the built-in wallet.
This commit is contained in:
Matthew Zipkin 2018-12-10 15:06:16 -08:00 committed by GitHub
parent 0b70a940a3
commit 3377e6536e
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);
}