Skip to content

Commit

Permalink
wallet: allow plugins to inherit configurations from the hsd.conf
Browse files Browse the repository at this point in the history
Note: standalone wallet wont read hsd.conf and still only depend on hsw.conf
  • Loading branch information
nodech committed May 30, 2023
1 parent 0389850 commit cf8b4b6
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 308 deletions.
6 changes: 5 additions & 1 deletion lib/wallet/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,11 @@ class Plugin extends EventEmitter {
constructor(node) {
super();

this.config = node.config.filter('wallet');
this.config = node.config.filter('wallet', {
// Allow configurations to propagate from the hsd.conf
// with 'wallet-' prefix.
data: true
});
this.config.open('hsw.conf');

this.network = node.network;
Expand Down
317 changes: 11 additions & 306 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"node": ">=14.0.0"
},
"dependencies": {
"bcfg": "~0.1.7",
"bcfg": "~0.2.1",
"bcrypto": "~5.4.0",
"bcurl": "^0.2.0",
"bdb": "~1.4.0",
Expand Down

0 comments on commit cf8b4b6

Please sign in to comment.