Is there an existing issue for this?
- I have searched the existing issues
Current behaviour
I have some wallets that are write protected and want to use bitcoin-wallet info
and bitcoin-wallet dump
but am unable to do so because these commands require write permission.
0$ bitcoin-wallet -datadir=. -wallet=wallet-name -dumpfile=wallet.dump dump
1SQLiteDatabase: Database opened in readonly mode but read-write permissions are needed
2$ bitcoin-wallet -datadir=. -wallet=wallet-name info
3SQLiteDatabase: Database opened in readonly mode but read-write permissions are needed
Expected behaviour
I would expect commands that are not intended to change the wallet to only require read permissions and be able to work on wallet directories and files that are read only.
This will also stop mistakes from corrupting the database.
Steps to reproduce
0chmod -R a-w <wallet-directory>
1bitcoin-wallet -datadir=<wallet-directory> -wallet=<wallet-name> -dumpfile=wallet.dump dump
2bitcoin-wallet -datadir=<wallet-directory> -wallet=<wallet-name> info
Relevant log output
No response
How did you obtain Bitcoin Core
Package manager
What version of Bitcoin Core are you using?
v25.0.0
Operating system and version
OpenBSD 7.4 Stable
Machine specifications
No response