-
Notifications
You must be signed in to change notification settings - Fork 812
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wallet directory location is unexpected if wallet.conf is present #645
Comments
OK I figured this out:
... then the wallet is saved in the subdirectory like 1 and 2 above. So if |
Additional weirdness: Using the above procedure I've got a directory structure like this: |
Adding to this issue because I'm pretty sure it's related: If the conf file exists at
|
To reproduce:
1: Expected
create directory
~/test
save
~/test/bcoin.conf
:run
bcoin --prefix=~/test
bcoin will create a folder
~/test/regtest
and save thewallet
directory there. ✅2. Somewhat unexpected
create directory
~/test
save
~/test/bcoin.conf
:save
~/test/wallet.conf
:run
bcoin --prefix=~/test
bcoin will create a folder
~/test/regtest
and save thewallet
directory there. ✅bcoin will run normally, however the wallet port setting (and anything else in that
wallet.conf
file) will be ignored. ❌See the log:
This is unexpected according to the docs: https://github.com/bcoin-org/bcoin/blob/b0155b663c79714b9fe0f54d7b42e30249e50dc2/CHANGELOG.md#configuration-changes
...but not according to these docs: https://github.com/bcoin-org/bcoin/blob/master/docs/Configuration.md
3: Really freaking weirdo
create directory
~/test
save
~/test/bcoin.conf
:save
~/test/regtest/wallet.conf
:run
bcoin --prefix=~/test
bcoin runs with the correct wallet port ✅, see the log. It's reading the wallet.conf file from the subdirectory:
however -- bcoin is NOT saving the wallet db in
~/test
... it is being saved in literally~/.bcoin
❌If you already have a wallet in that directory from running bcoin on mainnet without a prefix option, you're going to get
Error: IO error: /Users/pinhead/.bcoin/regtest/wallet/LOCK: No such file or directory
or
Error: Network mismatch for WalletDB.
The text was updated successfully, but these errors were encountered: