babylonchain / btc-staker

Other
25 stars 16 forks source link

Unable to dump configuration if parent directory doesn't exist #88

Closed gusin13 closed 9 months ago

gusin13 commented 9 months ago

When running stakercli admin dump-config, the following error is encountered:

[btc-staker] open /Users/gurjotsingh/Library/Application Support/Stakerd/stakerd.conf: no such file or directory

It appears that the if parent directory Stakerd is missing it prevents the command from successfully dumping the configuration.

Steps to Reproduce:

  1. Make sure Stakerd directory doesn't exist in your home dir
  2. Run stakercli admin dump-config.